summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-07-08 22:31:15 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-07-08 22:31:15 +0000
commit5663e1cd0afc62e212c43c8fb374c791d554fb1b (patch)
tree488e7cc83aaf2ee61184fad46a3b4891a95b0f13 /apps/plugin.c
parentf1a5a25dac4c61bf178ee5361998d205bb71b2d1 (diff)
downloadrockbox-5663e1cd0afc62e212c43c8fb374c791d554fb1b.tar.gz
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/plugin.c')
-rw-r--r--apps/plugin.c7
1 files changed, 7 insertions, 0 deletions
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 = {
782 mixer_channel_status, 782 mixer_channel_status,
783 mixer_channel_get_buffer, 783 mixer_channel_get_buffer,
784 mixer_channel_calculate_peaks, 784 mixer_channel_calculate_peaks,
785 mixer_channel_play_data,
786 mixer_channel_play_pause,
787 mixer_channel_stop,
788 mixer_channel_set_amplitude,
789 mixer_channel_get_bytes_waiting,
790 system_sound_play,
791 keyclick_click,
785#endif 792#endif
786}; 793};
787 794