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/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/action.c') diff --git a/apps/action.c b/apps/action.c index 5f845ab..aad5348 100644 --- a/apps/action.c +++ b/apps/action.c @@ -130,7 +130,7 @@ static int get_action_worker(int context, int timeout, /* Produce keyclick */ if (global_settings.keyclick && !(button & BUTTON_REL)) if (!(button & BUTTON_REPEAT) || global_settings.keyclick_repeats) - pcmbuf_beep(4000, 2, 2500*global_settings.keyclick); + pcmbuf_beep(4000, KEYCLICK_DURATION, 2500*global_settings.keyclick); #endif if ((context != last_context) && ((last_button & BUTTON_REL) == 0)) -- cgit v1.1