• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AU Generic View - Parameter displaying as float instead of int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AU Generic View - Parameter displaying as float instead of int


  • Subject: Re: AU Generic View - Parameter displaying as float instead of int
  • From: Christian Haines <email@hidden>
  • Date: Thu, 17 Dec 2009 11:11:59 +1030

Thanks.

Interesting, and this is what threw me, I had the same setup for another parameter which didn't visually produce a floating point value in the text field - however, the value was much larger - 1 to 88200.


On 16/12/2009, at 2:18 PM, William Stewart wrote:

You haven't defined this as an integer parameter - to do that you would have to specify that it was indexed. You can just round up/ down to an integer if that is all you deal with

On Dec 15, 2009, at 7:29 PM, Christian Haines wrote:

Hi All

I have created an audio unit, however one parameter is appearing as a floating point parameter in the generic view - even though it has been specified as a integer.

Is there some known bug with this?

Plugin.h >
static CFStringRef kParamName_Width = CFSTR ("Width");
static const int kDefaultValue_Width = 10;
static const int kMinimumValue_Width = 1;
static const int kMaximumValue_Width = 512;

Plugin.cpp
case kParameter_Width:
AUBase::FillInParameterName (outParameterInfo, kParamName_Width, false);
outParameterInfo.unit = kAudioUnitParameterUnit_SampleFrames;
outParameterInfo.minValue = kMinimumValue_Width;
outParameterInfo.maxValue = kMaximumValue_Width;
outParameterInfo.defaultValue = kDefaultValue_Width;


I tried to find if this had been discussed before but had no luck.

Any help gladly appreciated.

Regards
Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com


This email sent to email@hidden


_______________________________________________ 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
References: 
 >AU Generic View - Parameter displaying as float instead of int (From: Christian Haines <email@hidden>)
 >Re: AU Generic View - Parameter displaying as float instead of int (From: William Stewart <email@hidden>)

  • Prev by Date: Re: AU Generic View - Parameter displaying as float instead of int
  • Next by Date: query regarding "record" using coreaudio API
  • Previous by thread: Re: AU Generic View - Parameter displaying as float instead of int
  • Next by thread: query regarding "record" using coreaudio API
  • Index(es):
    • Date
    • Thread