[linux-audio-dev] Oss & threading -- is it possible

Paul Davis linux-audio-dev@music.columbia.edu
Fri Oct 10 13:39:01 EDT 2003

>But well, If I synthize ( ? spelling) two signals and want to send them at  th
>e same time
>to the device, my first idea'd be:
>1.) Open /dev/dsp, maybe O_NONBLOCK | O_WRONLY
>2.) thread
>3.) two threads calculate the both signals
>4.) sync them
>5.) two threads write their signals to /dev/dsp
>6.) threads close
>certainly some of this. I mean mp3blaster, for example, have several pids whil
>e playing audio streams, and it is basicly OSS-programming and not alsa.
>Am I so wrong ? ;)

you're completely wrong :)

you need to additively mix your two signals. writing them to DSP
orders them sequentially in time. it doesn't mix them.

More information about the linux-audio-dev mailing list