From 5663e1cd0afc62e212c43c8fb374c791d554fb1b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 8 Jul 2011 22:31:15 +0000 Subject: 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 --- apps/plugin.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 6b3d39973f..b47dd951ea 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -782,6 +782,13 @@ static const struct plugin_api rockbox_api = { mixer_channel_status, mixer_channel_get_buffer, mixer_channel_calculate_peaks, + mixer_channel_play_data, + mixer_channel_play_pause, + mixer_channel_stop, + mixer_channel_set_amplitude, + mixer_channel_get_bytes_waiting, + system_sound_play, + keyclick_click, #endif }; -- cgit v1.2.3