Move the code to handle pause in the audio driver.