Subject: Re: [linux-audio-dev] Oss & threading -- is it possible
From: Paul Davis (paul_AT_linuxaudiosystems.com)
Date: Fri Oct 10 2003 - 19:28:39 EEST
>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.
This archive was generated by hypermail 2b28 : Fri Oct 10 2003 - 19:37:54 EEST