Make the audio thread wait with a timeout even when filling