modified audio_io for functional recording part