[alsa-devel] Software mixing according to priority of streams
Hi,
Is there any sound mixer which does mixing according to priority of streams, i.e. i will have streams with different priority like audio stream , bluettoth sco stream, gps navigation sound stream etc. Since my hardware will not support hardware mixing i will have to do this mixing in software.
If bluetooth sco stream is opened while audio stream is playing then the application (sound server) should stop the playback of audio stream and should start playback of bletooth sco stream.
priority order is bluettoth sco > gps navigation sound > audio
Can dmix and Jack server the purpose.
Nobin Mathew
Can somebody throw some ideas on this ?
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
Hi,
Is there any sound mixer which does mixing according to priority of streams, i.e. i will have streams with different priority like audio stream , bluettoth sco stream, gps navigation sound stream etc. Since my hardware will not support hardware mixing i will have to do this mixing in software.
If bluetooth sco stream is opened while audio stream is playing then the application (sound server) should stop the playback of audio stream and should start playback of bletooth sco stream.
priority order is bluettoth sco > gps navigation sound > audio
Can dmix and Jack server the purpose.
Nobin Mathew
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
Can somebody throw some ideas on this ?
I don't understand your use case. Are you saying you want to start a playback app (say mplayer) and have the audio switch between devices? That's impossible.
If you just want to be able to play audio from multiple apps through the same device, then yes, dmix or jack can do it.
Lee
A sound server can do this
Maintain a buffer per application , and each buffer will have priority. when data comes on higher priority buffer stop taking data from low priority buffer, and configure the audio and start pumping data from high priority buffer.
On 6/15/07, Lee Revell rlrevell@joe-job.com wrote:
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
Can somebody throw some ideas on this ?
I don't understand your use case. Are you saying you want to start a playback app (say mplayer) and have the audio switch between devices? That's impossible.
If you just want to be able to play audio from multiple apps through the same device, then yes, dmix or jack can do it.
Lee
Yes i have multiple applications.
say mplayer for audio stream. bluetooth app for bluetooth sco stream RoadNav for GPS navigation voice data
priority we require is
mplayer < RoadNav < bluetooth sco
so when bluetooth sco apps starts no more mplayer stream data should go to codec till the sco app stops.
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
A sound server can do this
Maintain a buffer per application , and each buffer will have priority. when data comes on higher priority buffer stop taking data from low priority buffer, and configure the audio and start pumping data from high priority buffer.
On 6/15/07, Lee Revell rlrevell@joe-job.com wrote:
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
Can somebody throw some ideas on this ?
I don't understand your use case. Are you saying you want to start a playback app (say mplayer) and have the audio switch between devices? That's impossible.
If you just want to be able to play audio from multiple apps through the same device, then yes, dmix or jack can do it.
Lee
Hi Nobin,
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
A sound server can do this
Maintain a buffer per application , and each buffer will have priority. when data comes on higher priority buffer stop taking data from low priority buffer, and configure the audio and start pumping data from high priority buffer.
Not to stray too far OT here, but take a look at the message in the link below from the PulseAudio mailing list. Sounds like the type of thing you're looking for (although I don't think any patches have been submitted yet).
https://tango.0pointer.de/pipermail/pulseaudio-discuss/2007-May/000389.html
Cheers, Seth
yes this is what i need
On 6/15/07, Seth Forshee seth.forshee@gmail.com wrote:
Hi Nobin,
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
A sound server can do this
Maintain a buffer per application , and each buffer will have priority. when data comes on higher priority buffer stop taking data from low priority buffer, and configure the audio and start pumping data from high priority buffer.
Not to stray too far OT here, but take a look at the message in the link below from the PulseAudio mailing list. Sounds like the type of thing you're looking for (although I don't think any patches have been submitted yet).
https://tango.0pointer.de/pipermail/pulseaudio-discuss/2007-May/000389.html
Cheers, Seth
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
A sound server can do this
Maintain a buffer per application , and each buffer will have priority. when data comes on higher priority buffer stop taking data from low priority buffer, and configure the audio and start pumping data from high priority buffer.
Ah, so you do NOT want software mixing - you want the low priority stream to stop when the high priority stream starts.
Lee
yes, i thought only software mixing can do it
On 6/16/07, Lee Revell rlrevell@joe-job.com wrote:
On 6/15/07, Nobin Mathew nobin.mathew@gmail.com wrote:
A sound server can do this
Maintain a buffer per application , and each buffer will have priority. when data comes on higher priority buffer stop taking data from low priority buffer, and configure the audio and start pumping data from high priority buffer.
Ah, so you do NOT want software mixing - you want the low priority stream to stop when the high priority stream starts.
Lee
participants (3)
-
Lee Revell
-
Nobin Mathew
-
Seth Forshee