Two simple questions

View: New views
2 Messages — Rating Filter:   Alert me  

Two simple questions

by Hao Zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have two questions about using portaudio:
1. Is it possible to open multiple streams at the same time?
2. Is it possible to use different callback for different stream?
Frank


     
_______________________________________________
Portaudio mailing list
Portaudio@...
http://techweb.rfa.org/mailman/listinfo/portaudio

Re: Two simple questions

by Nicolas Castagné :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Franck

> I have�two questions about using portaudio:
> 1. Is it possible to open multiple streams at the same time?
From different processes:

Yes, provided the host audio API allows it.
For example, on Linux with OSS, this may not work.
But it should with alsa (at least with recent versions).

On the mac, with CoreAudio, it is OK.

From the same process (and in case from different thread):
I've never tried it, but I guess it is possible, with the same limitation
as before.


> 2. Is it possible to use different callback for different stream?
Yes, definitely.
The callback function is whosen when starting the stream with Pa_OpenStream.

Hope it helps.
Nicolas
> Frank
>
>
>
> _______________________________________________
> Portaudio mailing list
> Portaudio@...
> http://techweb.rfa.org/mailman/listinfo/portaudio
>

_______________________________________________
Portaudio mailing list
Portaudio@...
http://techweb.rfa.org/mailman/listinfo/portaudio