Fredrik Tolf wrote: > The most annoying thing is that sounds seem to be serialized, ie. if > one process plays something through the OSS DSP device, any other > process that also tries to play through the OSS DSP device blocks > until the first process is done. An strace revealed that it is the > write() calls that are blocking. ps also reveals that the kernel is > sleeping in down(). To make things stranger, it seems that only > "short" streams are blocking. When I have, for example, an MP3 playing > through /dev/dsp, other processes can play sounds simultaneously (but > those that play short streams still block each other). What the > difference between a "short" and a "long" stream is, I can't really > determine, though.
Are you using the same program for play "short" and "long" streams? Is there a difference in the buffer size given to write() (as seen by strace) between "short" and "long" streams? > I have only tried with the OSS DSP, since I don't know how to play > PCM sound natively with ALSA. I tried some of the pcm* devices in > /dev/snd, but none yielded any sound output. Use "aplay something.wav", or "aplay -Dplughw:X,Y something.wav", where X is the card number and Y the device number (see "aplay -l" for a list). HTH Clemens ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user