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

2003-10-13 Thread David Olofson
On Friday 10 October 2003 19.19, [EMAIL PROTECTED] wrote: [...] > quiet interesting ;) > > Could you give me a short idea howto mix two > signals/stream/oscilators/whatever ?? The actual mixing is just a matter of adding the signals together. You'll have to make sure the result doesn't overflow (

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

2003-10-11 Thread Juan Linietsky
On Friday 10 October 2003 11:31, [EMAIL PROTECTED] wrote: > Hello ! > > I've read somewhere that it is not possible that threads write different > data to /dev/dsp. But how does Cheesetracker, for example, make it then? > In cheesetracker, only one thread writes to the DSP and manages audio .. the

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

2003-10-10 Thread Tim Hockin
On Fri, Oct 10, 2003 at 11:14:17PM +0300, Jussi Laako wrote: > On Fri, 2003-10-10 at 19:28, Paul Davis wrote: > > > you need to additively mix your two signals. writing them to DSP > > orders them sequentially in time. it doesn't mix them. > > The commercial OSS driver does mixing and samplerate

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

2003-10-10 Thread Paul Davis
>On Fri, 2003-10-10 at 19:28, Paul Davis wrote: > >> you need to additively mix your two signals. writing them to DSP >> orders them sequentially in time. it doesn't mix them. > >The commercial OSS driver does mixing and samplerate conversion. not of two sequential read(2) calls. please.

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

2003-10-10 Thread Jussi Laako
On Fri, 2003-10-10 at 19:28, Paul Davis wrote: > you need to additively mix your two signals. writing them to DSP > orders them sequentially in time. it doesn't mix them. The commercial OSS driver does mixing and samplerate conversion. -- Jussi Laako <[EMAIL PROTECTED]>

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

2003-10-10 Thread hexe_2003
directBOX Reply --- From: [EMAIL PROTECTED] To : [EMAIL PROTECTED] Date: 10.10.2003 19:17:01 On Friday 10 October 2003 17.41, [EMAIL PROTECTED] wrote: [...] > But well, If I synthize ( ? spelling) two signals and want to send > them at the same time to the device, my firs

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

2003-10-10 Thread David Olofson
On Friday 10 October 2003 17.41, [EMAIL PROTECTED] wrote: [...] > But well, If I synthize ( ? spelling) two signals and want to send > them at the 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

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

2003-10-10 Thread Paul Davis
>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

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

2003-10-10 Thread hexe_2003
directBOX Reply --- From: [EMAIL PROTECTED] To : [EMAIL PROTECTED] Date: 10.10.2003 17:37:43 >Hello ! > >I've read somewhere that it is not possible that threads write different data to / >dev/dsp. >But how does Cheesetracker, for example, make it then? i don't how chees

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

2003-10-10 Thread Paul Davis
>Hello ! > >I've read somewhere that it is not possible that threads write different data to / >dev/dsp. >But how does Cheesetracker, for example, make it then? i don't how cheesetracker does it, but it requires user-space synchronization (e.g. pthread_mutex_(un)lock). with ALSA, you don't need t

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

2003-10-10 Thread hexe_2003
Hello ! I've read somewhere that it is not possible that threads write different data to /dev/dsp. But how does Cheesetracker, for example, make it then? Sascha Retzki __ Verpassen Sie keine eBay-Auktion und bieten Sie bequem und schnell über da