[maemo-developers] Dspmp3sink and multiple sources

From: Sarah Newman newmans at sonic.net
Date: Fri Jul 25 17:37:54 EEST 2008
Your problems are not particular to linux but particular to the internet 
tablets.

As I understand, there are "tasks" that run on the DSP and the task is 
effectively a single thread; multiple instances of that task cannot be 
spawned.  Decoding the MP3 is a task which runs on the MP3, so only one 
MP3 can be decoded at a time with dspmp3sink.

I've filed a bug related to this: 
https://bugs.maemo.org/show_bug.cgi?id=3121

And apparently what I found is that you can play back different kinds of 
audio if they're in different formats.  Hope that helps.

An alternative might be playing back an mp3 without using dspmp3sink but 
that might unacceptably load your system.


David McGookin wrote:
> Hi,
> 
>    I¹m trying to write an application that plays two concurrent (at the same
> time) mp3 audio streams.  I¹d really like to use dspmp3sink to offload the
> computational load.  But I can¹t seem to run two gstreamer pipelines
> concurrently that connect to Dspmp3sink.  I¹ve tried a few ways, but trying
> it via the command line in a terminal via ssh) with:
> 
>  gst-launch filesrc location=track1.mp3 ! dspmp3sink
> 
> And then running 
> 
> gst-launch filesrc location=track2.mp3 ! dspmp3sink
> 
> In a separate ssh session, causes the first track to play fine, until the
> second command is entered.  When this happens I get
> 
> ERROR: from element /pipeline0/dspmp3sink0: Could not get/set settings
> from/on resource.  
> 
> The first already playing track gets a could not write to resource and stops
> playing.
> 
> I¹m new to gstreamer and linux in general but is what I am trying to do
> possible?  Can I premix the mp3 streams first and then send them to
> dspmp3sink or would an approach with the pcm sink work better?
> 
> Thanks
> david
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

More information about the maemo-developers mailing list