OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Multiple Apps Accessing Audio
anmol10
post Aug 4 2005, 04:02 PM
Post #1





Group: Members
Posts: 19
Joined: 28-August 04
Member No.: 4,410



I was wondering if anyone had tried having multiple applications accessing the audio sub-system on the SL6000 (or any other Zaurus).

You would want something like this is if you want to play mp3's and do VOIP at the same time, or maybe record your VOIP conversations using a console app.

Most desktop Linux distributions allow for mixing of serveral audio sources. From what I gather, this may be enabled in hardware, or may rely on applications like aRTs or ESD to combine the channels, so you can play games and mp3's at the same time. On the Zarus, trying this throws a "/dev/dsp busy" error. I tried searching for esd or arts (ps axu | grep arts) but they don't seem to be running on the Zaurus.

I was wondering if people had tried this sort of a thing or had suggestions about it. I would have to read more about these and see if they could be cross-compiled for the Z.

Thanks,
-Anmol
Go to the top of the page
 
+Quote Post
lpotter
post Aug 4 2005, 06:06 PM
Post #2





Group: Members
Posts: 451
Joined: 27-November 03
From: Brisbane, Australia
Member No.: 1,001



The standard 2.4 kernel does not allow sharing (mixing) the audio device among applications. It can be gotten around by using a sound server, such as ESD, or arts, or QSS.
The newer qt/e 2.3.x has QSS. But it takes the applications to register itself as a QSS client and send bytes to it.

The 2.6 kernel with ALSA, allows the device to mix, I believe.
Go to the top of the page
 
+Quote Post
anmol10
post Aug 8 2005, 07:49 AM
Post #3





Group: Members
Posts: 19
Joined: 28-August 04
Member No.: 4,410



Thanks. I wanted to access the audio while kphone/VOIP is running, so I can execute my speech feature processing code at the same time.

I ended up adding some multi-threaded code to kphone to open the mic and stream the audio out.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 01:15 PM