Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Querying available audio devices

Date2008-10-27 12:53
Fromvictor
Subject[Csnd] Re: Re: Re: Querying available audio devices
Use the Csound() (or derived) class and the Csound::SetMessageCallback() 
method.

the callback should be something like

def  mcallback(s):
    # s is a string
    # e.g. you can print it
    print s


cs.SetMessageCallback(mcallback)


Victor
----- Original Message ----- 
From: "Chuckk Hubbard" 
To: 
Sent: Monday, October 27, 2008 12:04 PM
Subject: [Csnd] Re: Re: Querying available audio devices


> Sounds like a plan.  I'll let people choose from whichever modules are
> available for their platform and then see the devices for whatever
> they choose.
>
> I tried directing both stderr and stdout to file objects, and didn't
> pick up the Csound output from cs.compile().  Anyone know how I do
> that in Python?
>
> -Chuckk
>
> On Mon, Oct 27, 2008 at 11:12 AM, victor  wrote:
>> For -+rtaudio you can just check the platform OS and the
>> modules for each are well-defined (ie portaudio and alsa for linux, etc).
>>
>> The only way I think is to run csound with -odac99, then parse
>> the message output.
>>
>> Perhaps an API function to do this might be possible, but it
>> will need to be implemented by the IO modules.
>>
>> Regards
>>
>> Victor
>>
>> ----- Original Message ----- From: "Chuckk Hubbard"
>> 
>> To: "Csound List" 
>> Sent: Monday, October 27, 2008 7:54 AM
>> Subject: [Csnd] Querying available audio devices
>>
>>
>>> Is there a way to do this with the API?  To build a list of available
>>> devices to show in my app?
>>> I think it would have to know possible values for both -+rtaudio and
>>> -odac, no?
>>>
>>> -Chuckk
>>> --
>>> http://www.badmuthahubbard.com
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> -- 
> http://www.badmuthahubbard.com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-10-27 13:08
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: Re: Re: Querying available audio devices
AttachmentsNone  

Date2008-10-27 13:18
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: Re: Re: Querying available audio devices
AttachmentsNone