| Thanks. I just checked this. So I'll enable running multiple csds only
for jack and pulseaudio for now.
Cheers,
Andrés
On Fri, Feb 12, 2010 at 7:46 PM, Victor Lazzarini
wrote:
> But note that portaudio via ALSA or via ASIO will also fail.
> On 12 Feb 2010, at 18:11, Andres Cabrera wrote:
>
>> Thanks for having a look. I'll add a check to QuteCsound for this. If
>> using alsa or coreaudio, stop before running a new instance.
>>
>> Cheers,
>> Andrés
>>
>> On Fri, Feb 12, 2010 at 5:56 PM, Victor Lazzarini
>> wrote:
>>> Another update on this. On further look, the code in rtcoreaudio.c
>>> will not allow the device to be used more than once per process. This
>>> is a limitation that is imposed by the HAL coreaudio library code
>>> used
>>> in that module. Portaudio uses a different implementation, which is
>>> based on AUHAL coreaudio, that seems to be the recommended by Apple
>>> for later OSX versions.
>>> Until I get round to upgrading rtcoreaudio.c to use it (ie. rewrite
>>> it), this limitation will be there. But the portaudio module works
>>> fine.
>>> I might consider removing rtcoreaudio.c as portaudio seems to be
>>> stable enough now.
>>>
>>> Note that on Linux and with ASIO, only a single device can be opened
>>> at a time too.
>>>
>>> Victor
>>>
>>> On 12 Feb 2010, at 09:55, Andres Cabrera wrote:
>>>
>>>> Great news, thanks very much.
>>>>
>>>> Cheers,
>>>> Andrés
>>>>
>>>> On Fri, Feb 12, 2010 at 9:47 AM, Victor Lazzarini
>>>> wrote:
>>>>> it looks like this is fixed in the new coreaudio code, 5.11 had
>>>>> some
>>>>> deprecated coreaudio framework code. As for portaudio, I have
>>>>> updated
>>>>> my dylib to the latest snapshot and it has fixed it. So I will
>>>>> distribute it with 5.12 and all should be OK.
>>>>>
>>>>> If you build and install the latest portaudio snapshot, you
>>>>> should be
>>>>> OK too.
>>>>>
>>>>> Victor
>>>>>
>>>>> On 11 Feb 2010, at 18:58, Andres Cabrera wrote:
>>>>>
>>>>>> #include
>>>>>> #include
>>>>>> #include "csound.hpp"
>>>>>> #include "csPerfThread.hpp"
>>>>>>
>>>>>> int main(int argc, char *argv[])
>>>>>> {
>>>>>> int result1=0, result2=0;
>>>>>> csoundInitialize(NULL,NULL,NULL);
>>>>>> Csound cs1;
>>>>>> result1 = cs1.Compile(argc,argv);
>>>>>>
>>>>>>
>>>>>> CsoundPerformanceThread perfThread1(cs1.GetCsound());
>>>>>> perfThread1.Play(); // Starts performance
>>>>>> sleep(2);
>>>>>>
>>>>>> Csound cs2;
>>>>>> result2 = cs2.Compile(argc,argv);
>>>>>> CsoundPerformanceThread perfThread2(cs2.GetCsound());
>>>>>> perfThread2.Play(); // Starts performance
>>>>>>
>>>>>> sleep(2);
>>>>>> perfThread1.Stop();
>>>>>> perfThread1.Join();
>>>>>>
>>>>>> sleep(2);
>>>>>> perfThread2.Stop();
>>>>>> perfThread2.Join();
>>>>>>
>>>>>>
>>>>>> printf("%i-%i",result1, result2);
>>>>>>
>>>>>> sleep(2);
>>>>>> return 0;
>>>>>> }
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> SOLARIS 10 is the OS for Data Centers - provides features such as
>>>>> DTrace,
>>>>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>>>>> http://p.sf.net/sfu/solaris-dev2dev
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> Andrés
>>>>
>>>> ------------------------------------------------------------------------------
>>>> SOLARIS 10 is the OS for Data Centers - provides features such as
>>>> DTrace,
>>>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>>>> http://p.sf.net/sfu/solaris-dev2dev
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> SOLARIS 10 is the OS for Data Centers - provides features such as
>>> DTrace,
>>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>>> http://p.sf.net/sfu/solaris-dev2dev
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> SOLARIS 10 is the OS for Data Centers - provides features such as
>> DTrace,
>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>> http://p.sf.net/sfu/solaris-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
--
Andrés
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.so |