diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-07-08 22:31:15 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-07-08 22:31:15 +0000 |
commit | 5663e1cd0afc62e212c43c8fb374c791d554fb1b (patch) | |
tree | 488e7cc83aaf2ee61184fad46a3b4891a95b0f13 /apps/action.c | |
parent | f1a5a25dac4c61bf178ee5361998d205bb71b2d1 (diff) | |
download | rockbox-5663e1cd0afc62e212c43c8fb374c791d554fb1b.tar.gz rockbox-5663e1cd0afc62e212c43c8fb374c791d554fb1b.tar.bz2 rockbox-5663e1cd0afc62e212c43c8fb374c791d554fb1b.zip |
Have mpegplayer use the mixer (the playback channel, since it's mutually exclusive to audio playback) so the clicks and skip beep can be used according to user settings. Introduce some system sound functions to make easier playing event sounds from various places and convert files calling 'beep_play' to use 'system_sound_play' and 'keyclick_click'. Event sound could be become themeable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30130 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/action.c')
-rw-r--r-- | apps/action.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/action.c b/apps/action.c index aa19403703..15b2d8a4c8 100644 --- a/apps/action.c +++ b/apps/action.c @@ -203,9 +203,7 @@ static int get_action_worker(int context, int timeout, #if CONFIG_CODEC == SWCODEC /* Produce keyclick */ - if (global_settings.keyclick && !(button & BUTTON_REL)) - if (!(button & BUTTON_REPEAT) || global_settings.keyclick_repeats) - beep_play(4000, KEYCLICK_DURATION, 2500*global_settings.keyclick); + keyclick_click(button); #endif if ((context != last_context) && ((last_button & BUTTON_REL) == 0) |