Fix some audio process

Minor fixes for audio processing