From 93572e2a9e651b7d0bffae491da3d2ece2f0c2d2 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 13 Dec 2008 06:01:08 +0000 Subject: 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 --- apps/plugin.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index cf015e2..f78b6bf 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -785,12 +785,6 @@ int plugin_load(const char* plugin, const void* parameter) break; } -#if CONFIG_CODEC == SWCODEC && !defined (HAVE_HARDWARE_BEEP) - /* Did the plugin trash the buffer? Restore it. */ - if (audio_buffer_state() == AUDIOBUF_STATE_TRASHED) - audio_buffer_reset(); -#endif - return PLUGIN_OK; } -- cgit v1.1