diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-06-10 02:10:47 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-06-10 02:10:47 +0000 |
commit | 4597ebe24b5300f9e0009ae5a4e08a0527214e94 (patch) | |
tree | a1d5c3e6c305b5033efca4827e9e2d116662bda3 /apps/plugins/zxbox | |
parent | 19cc9d063a22cd5162e164d8f5e2fe98944c3721 (diff) |
Plugins that play sound must be sure to set inputs and outputs on audio muxed targets. Add strict adherence to the interface protocols. Make sure playback sets the playback output as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13604 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/spsound.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/plugins/zxbox/spsound.c b/apps/plugins/zxbox/spsound.c index f9a4c6caa7..aae4ad9c8d 100644 --- a/apps/plugins/zxbox/spsound.c +++ b/apps/plugins/zxbox/spsound.c @@ -106,8 +106,12 @@ static void open_snd(void) sndstate = SPS_OPENED; sound_avail=1; rb->pcm_play_stop(); - rb->pcm_set_frequency(44100); - +#if INPUT_SRC_CAPS != 0 + /* Select playback */ + rb->audio_set_input_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK); + rb->audio_set_output_source(AUDIO_SRC_PLAYBACK); +#endif + rb->pcm_set_frequency(SAMPR_44); } static void close_snd(int normal) @@ -115,7 +119,7 @@ static void close_snd(int normal) (void)normal; sound_avail = 0; rb->pcm_play_stop(); - rb->pcm_set_frequency(44100); + rb->pcm_set_frequency(HW_SAMPR_DEFAULT); } |