when closing audio source, don't flush audio data if audio buffer is empty