diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-06-29 06:37:04 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-06-29 06:37:04 +0000 |
commit | a2b6703a369f6cdbfec1f150c408dadc877631fb (patch) | |
tree | 3145a8c1372c44711d38feefeba39c7d4098f139 /firmware/target/hosted/maemo | |
parent | 8411614b8a068a4f274c3841aa55aab1df1bc246 (diff) | |
download | rockbox-a2b6703a369f6cdbfec1f150c408dadc877631fb.tar.gz rockbox-a2b6703a369f6cdbfec1f150c408dadc877631fb.zip |
Commit FS#12150 - Fully-functional audio mixer - and finally whip old limitations about playback of voice and other sounds when paused. Channels are independent in state and amplitude. Fade on stop/pause is handled by the channel's volume control rather than global volume which means it now works from anywhere. Opens up the possibility of plugin sounds during music playback by merely adding an additional channel enum. If any PCM drivers were not properly modified, see one of the last comments in the task for a description of the simple change that is expected. Some params are tunable in firmware/export/pcm-mixer.h as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30097 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted/maemo')
-rw-r--r-- | firmware/target/hosted/maemo/pcm-gstreamer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/hosted/maemo/pcm-gstreamer.c b/firmware/target/hosted/maemo/pcm-gstreamer.c index e3e40f0619..6069801fba 100644 --- a/firmware/target/hosted/maemo/pcm-gstreamer.c +++ b/firmware/target/hosted/maemo/pcm-gstreamer.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | #include "pcm.h" | 56 | #include "pcm.h" |
57 | #include "pcm-internal.h" | ||
57 | #include "pcm_sampr.h" | 58 | #include "pcm_sampr.h" |
58 | 59 | ||
59 | /*#define LOGF_ENABLE*/ | 60 | /*#define LOGF_ENABLE*/ |
@@ -182,6 +183,8 @@ static void feed_data(GstElement * appsrc, guint size_hint, void *unused) | |||
182 | 183 | ||
183 | if (ret != 0) | 184 | if (ret != 0) |
184 | DEBUGF("push-buffer error result: %d\n", ret); | 185 | DEBUGF("push-buffer error result: %d\n", ret); |
186 | |||
187 | pcm_play_dma_started_callback(); | ||
185 | } else | 188 | } else |
186 | { | 189 | { |
187 | DEBUGF("feed_data: No Data.\n"); | 190 | DEBUGF("feed_data: No Data.\n"); |