new write/read in audio.c