Keyclick fixup take two. It is only 88 samples (2msec) long so keep a small static buffer around for beeps less than or equal to keyclick duration. This way it operates no matter the buffer state and still won't interfere with alternate PCM operations like recording or plugin playback.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19415 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-13 06:01:08 +00:00
parent bdcdf8b5e4
commit 93572e2a9e
12 changed files with 52 additions and 63 deletions

View file

@ -1167,10 +1167,6 @@ 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 */