PCM buffer beeping needs the audio buffer reset in order to work after operations that trash the buffer or keyclick won't be audible until playback is restarted.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19413 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-13 02:48:36 +00:00
parent cc57381707
commit 826688e699
7 changed files with 42 additions and 0 deletions

View file

@ -1167,6 +1167,10 @@ static void pcmrec_close(void)
pcm_close_recording();
reset_hardware();
audio_remove_encoder();
#ifndef HAVE_HARDWARE_BEEP
/* Restore keyclicks */
audio_buffer_reset();
#endif
} /* pcmrec_close */
/* PCMREC_OPTIONS */