diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-12-13 06:01:08 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-12-13 06:01:08 +0000 |
commit | 93572e2a9e651b7d0bffae491da3d2ece2f0c2d2 (patch) | |
tree | ec4f1b6c6634b4e6d70aee6165e60d91b6201b7e /apps/playback.c | |
parent | bdcdf8b5e463a581f67639db9d0bd6735ac218e0 (diff) |
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
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/apps/playback.c b/apps/playback.c index 1a638eb7c8..d2d9bb6a34 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -136,7 +136,6 @@ enum { Q_AUDIO_POSTINIT, Q_AUDIO_FILL_BUFFER, Q_AUDIO_FINISH_LOAD, - Q_AUDIO_RESTORE_BUFFER, Q_CODEC_REQUEST_COMPLETE, Q_CODEC_REQUEST_FAILED, @@ -491,12 +490,6 @@ int audio_buffer_state(void) return buffer_state; } -void audio_buffer_reset(void) -{ - LOGFQUEUE("audio_queue >| Q_AUDIO_RESTORE_BUFFER"); - queue_send(&audio_queue, Q_AUDIO_RESTORE_BUFFER, 0); -} - #ifdef HAVE_RECORDING unsigned char *audio_get_recording_buffer(size_t *buffer_size) { @@ -2396,12 +2389,6 @@ static void audio_thread(void) audio_finish_load_track(); break; - case Q_AUDIO_RESTORE_BUFFER: - LOGFQUEUE("audio < Q_AUDIO_RESTORE_BUFFER"); - if (buffer_state != AUDIOBUF_STATE_INITIALIZED) - audio_reset_buffer(); - break; - case Q_AUDIO_PLAY: LOGFQUEUE("audio < Q_AUDIO_PLAY"); if (playing && ev.data <= 0) |