Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
AU Generic View - Parameter displaying as float instead of int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AU Generic View - Parameter displaying as float instead of int



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:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.