audio_engine - fix buffer issue at the end of file