Re: AudioUnit write-only parameter (Was: Cocoa Generic View)
Re: AudioUnit write-only parameter (Was: Cocoa Generic View)
- Subject: Re: AudioUnit write-only parameter (Was: Cocoa Generic View)
- From: Antoine Misout <email@hidden>
- Date: Thu, 2 Jun 2005 09:58:21 -0400
I'm currently adding a parameter which loads an audio file to my
project. I've tried using an indexed parameter with two values: one
for loading a file, the other displaying the file loaded or ' no
file'. This parameter state is always on the second item. Now this
doesn't work since auval will try to set the parameter, which in turn
will pop-up an open file panel, and this isn't good. It also warns
that the parameter doesn't retains its minimum value.
So I've tried using a write-only boolean parameter, which auval
fortunately doesn't try to play with, which is good. However, it
seems only the generic views from 10.4 supports this: in particular,
Logic doesn't show it. My current workaround is to force users to use
a custom gui, but I'd like to know if there is a better way.
Thoughts?
Thank you,
Antoine
On 25-May-05, at 9:29 PM, William Stewart wrote:
Both the Carbon and Cocoa Generic Views also have some special
behaviours now for Boolean Parameters:
Read Only - puts up an indicator that "lights up" when the value is
set to on, and off when off
Write Only - provides a "push button" to hit this parameter with
(the param is considered to have no state - think of a button to
reset an AU)
Read/Write - checkbox as it does currently
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden