Csound Csound-dev Csound-tekno Search About

[Cs-dev] WASAPI

Date2011-12-19 09:30
FromØyvind Brandtsegg
Subject[Cs-dev] WASAPI
Hello

Did anyone succeed in using Csound with WASAPI?

If I compile portaudio with WASAPI only, the portaudio test application (paqa_devs test) will produce sound on my device, so I thing portaudio itself is ok with WASAPI.

When I try to use this with Csound I get

./csound examples/trapped.csd -odac
gives:
PortAudio V19-devel (built Nov 25 2011 15:57:48)
PortAudio: available output devices:
   0: Uavhengige (RTC) hodesett (IDT High Definition Audio CODEC)
   1: H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)
PortAudio: selected output device 'H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)'
 *** PortAudio: error: -9996: Invalid device
Failed to initialise real time audio output

I also tried with different buffer sizes (in case that should matter) but get the same result.

Device 0 and 1 here referes to the same sound card (internal card on my laptop), and -odac1 give the same result as -odac

But:
./csound examples/trapped.csd -odac -+rtaudio=mme
actually works (!),
Note:portaudio is compiled without mme, only wasapi

And:
./csound examples/trapped.csd -odac -+rtaudio=wasapi
gives:
orch now loaded
audio buffered in 128 sample-frame blocks
        ################################################################
        #               WARNING: OPCODEDIR IS NOT SET !                #
        # Csound requires this environment variable to be set to find  #
        # its plugin libraries. If it is not set, you may experience   #
        # missing opcodes, audio/MIDI drivers, or utilities.           #
        ################################################################
 *** error: unknown rtaudio module: 'wasapi'
Failed to initialise real time audio output


Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-19 09:42
FromVictor Lazzarini
SubjectRe: [Cs-dev] WASAPI
That I am not surprised, there is no wasapi.dll IO module in the OPCODEDIR (which is the way it is).

I'm sorry I can't be of much help as I don't have a windows devel machine.

Victor
On 19 Dec 2011, at 09:30, Øyvind Brandtsegg wrote:

> nd:
> ./csound examples/trapped.csd -odac -+rtaudio=wasapi
> gives:
> orch now loaded
> audio buffered in 128 sample-frame blocks
>        ################################################################
>        #               WARNING: OPCODEDIR IS NOT SET !                #
>        # Csound requires this environment variable to be set to find  #
>        # its plugin libraries. If it is not set, you may experience   #
>        # missing opcodes, audio/MIDI drivers, or utilities.           #
>        ################################################################
> *** error: unknown rtaudio module: 'wasapi'
> Failed to initialise real time audio output

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-19 19:36
FromAndres Cabrera
SubjectRe: [Cs-dev] WASAPI
Hi,

If you built wasapi into portaudio, then you need to use
-+rtaudio=portaudio, and on the device list there you should see the
wasapi devices.

Cheers,
Andrés

On Mon, Dec 19, 2011 at 9:30 AM, Øyvind Brandtsegg
 wrote:
> Hello
>
> Did anyone succeed in using Csound with WASAPI?
>
> If I compile portaudio with WASAPI only, the portaudio test application (paqa_devs test) will produce sound on my device, so I thing portaudio itself is ok with WASAPI.
>
> When I try to use this with Csound I get
>
> ./csound examples/trapped.csd -odac
> gives:
> PortAudio V19-devel (built Nov 25 2011 15:57:48)
> PortAudio: available output devices:
>   0: Uavhengige (RTC) hodesett (IDT High Definition Audio CODEC)
>   1: H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)
> PortAudio: selected output device 'H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)'
>  *** PortAudio: error: -9996: Invalid device
> Failed to initialise real time audio output
>
> I also tried with different buffer sizes (in case that should matter) but get the same result.
>
> Device 0 and 1 here referes to the same sound card (internal card on my laptop), and -odac1 give the same result as -odac
>
> But:
> ./csound examples/trapped.csd -odac -+rtaudio=mme
> actually works (!),
> Note:portaudio is compiled without mme, only wasapi
>
> And:
> ./csound examples/trapped.csd -odac -+rtaudio=wasapi
> gives:
> orch now loaded
> audio buffered in 128 sample-frame blocks
>        ################################################################
>        #               WARNING: OPCODEDIR IS NOT SET !                #
>        # Csound requires this environment variable to be set to find  #
>        # its plugin libraries. If it is not set, you may experience   #
>        # missing opcodes, audio/MIDI drivers, or utilities.           #
>        ################################################################
>  *** error: unknown rtaudio module: 'wasapi'
> Failed to initialise real time audio output
>
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
>
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for
> developers. It will provide a great way to learn Windows Azure and what it
> provides. You can attend the event by watching it streamed LIVE online.
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo

Date2011-12-19 19:47
FromVictor Lazzarini
SubjectRe: [Cs-dev] WASAPI
that is the problem, it doesn't seem to work.
On 19 Dec 2011, at 19:36, Andres Cabrera wrote:

> Hi,
> 
> If you built wasapi into portaudio, then you need to use
> -+rtaudio=portaudio, and on the device list there you should see the
> wasapi devices.
> 
> Cheers,
> Andrés
> 
> On Mon, Dec 19, 2011 at 9:30 AM, Øyvind Brandtsegg
>  wrote:
>> Hello
>> 
>> Did anyone succeed in using Csound with WASAPI?
>> 
>> If I compile portaudio with WASAPI only, the portaudio test application (paqa_devs test) will produce sound on my device, so I thing portaudio itself is ok with WASAPI.
>> 
>> When I try to use this with Csound I get
>> 
>> ./csound examples/trapped.csd -odac
>> gives:
>> PortAudio V19-devel (built Nov 25 2011 15:57:48)
>> PortAudio: available output devices:
>>   0: Uavhengige (RTC) hodesett (IDT High Definition Audio CODEC)
>>   1: H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)
>> PortAudio: selected output device 'H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)'
>>  *** PortAudio: error: -9996: Invalid device
>> Failed to initialise real time audio output
>> 
>> I also tried with different buffer sizes (in case that should matter) but get the same result.
>> 
>> Device 0 and 1 here referes to the same sound card (internal card on my laptop), and -odac1 give the same result as -odac
>> 
>> But:
>> ./csound examples/trapped.csd -odac -+rtaudio=mme
>> actually works (!),
>> Note:portaudio is compiled without mme, only wasapi
>> 
>> And:
>> ./csound examples/trapped.csd -odac -+rtaudio=wasapi
>> gives:
>> orch now loaded
>> audio buffered in 128 sample-frame blocks
>>        ################################################################
>>        #               WARNING: OPCODEDIR IS NOT SET !                #
>>        # Csound requires this environment variable to be set to find  #
>>        # its plugin libraries. If it is not set, you may experience   #
>>        # missing opcodes, audio/MIDI drivers, or utilities.           #
>>        ################################################################
>>  *** error: unknown rtaudio module: 'wasapi'
>> Failed to initialise real time audio output
>> 
>> 
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> 
>> ------------------------------------------------------------------------------
>> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
>> Microsoft is holding a special Learn Windows Azure training event for
>> developers. It will provide a great way to learn Windows Azure and what it
>> provides. You can attend the event by watching it streamed LIVE online.
>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for 
> developers. It will provide a great way to learn Windows Azure and what it 
> provides. You can attend the event by watching it streamed LIVE online.  
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-20 07:27
FromAndres Cabrera
SubjectRe: [Cs-dev] WASAPI
Hi,

Yes sorry! That's what happens when you only read the end of messages...

Cheers,
Andrés

On Mon, Dec 19, 2011 at 7:47 PM, Victor Lazzarini
 wrote:
> that is the problem, it doesn't seem to work.
> On 19 Dec 2011, at 19:36, Andres Cabrera wrote:
>
>> Hi,
>>
>> If you built wasapi into portaudio, then you need to use
>> -+rtaudio=portaudio, and on the device list there you should see the
>> wasapi devices.
>>
>> Cheers,
>> Andrés
>>
>> On Mon, Dec 19, 2011 at 9:30 AM, Øyvind Brandtsegg
>>  wrote:
>>> Hello
>>>
>>> Did anyone succeed in using Csound with WASAPI?
>>>
>>> If I compile portaudio with WASAPI only, the portaudio test application (paqa_devs test) will produce sound on my device, so I thing portaudio itself is ok with WASAPI.
>>>
>>> When I try to use this with Csound I get
>>>
>>> ./csound examples/trapped.csd -odac
>>> gives:
>>> PortAudio V19-devel (built Nov 25 2011 15:57:48)
>>> PortAudio: available output devices:
>>>   0: Uavhengige (RTC) hodesett (IDT High Definition Audio CODEC)
>>>   1: H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)
>>> PortAudio: selected output device 'H°yttalere / Hodetelefon (IDT High Definition Audio CODEC)'
>>>  *** PortAudio: error: -9996: Invalid device
>>> Failed to initialise real time audio output
>>>
>>> I also tried with different buffer sizes (in case that should matter) but get the same result.
>>>
>>> Device 0 and 1 here referes to the same sound card (internal card on my laptop), and -odac1 give the same result as -odac
>>>
>>> But:
>>> ./csound examples/trapped.csd -odac -+rtaudio=mme
>>> actually works (!),
>>> Note:portaudio is compiled without mme, only wasapi
>>>
>>> And:
>>> ./csound examples/trapped.csd -odac -+rtaudio=wasapi
>>> gives:
>>> orch now loaded
>>> audio buffered in 128 sample-frame blocks
>>>        ################################################################
>>>        #               WARNING: OPCODEDIR IS NOT SET !                #
>>>        # Csound requires this environment variable to be set to find  #
>>>        # its plugin libraries. If it is not set, you may experience   #
>>>        # missing opcodes, audio/MIDI drivers, or utilities.           #
>>>        ################################################################
>>>  *** error: unknown rtaudio module: 'wasapi'
>>> Failed to initialise real time audio output
>>>
>>>
>>> Oeyvind Brandtsegg
>>> Professor of Music Technology
>>> NTNU
>>> 7491 Trondheim
>>> Norway
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
>>> Microsoft is holding a special Learn Windows Azure training event for
>>> developers. It will provide a great way to learn Windows Azure and what it
>>> provides. You can attend the event by watching it streamed LIVE online.
>>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
>> Microsoft is holding a special Learn Windows Azure training event for
>> developers. It will provide a great way to learn Windows Azure and what it
>> provides. You can attend the event by watching it streamed LIVE online.
>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for
> developers. It will provide a great way to learn Windows Azure and what it
> provides. You can attend the event by watching it streamed LIVE online.
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/list