• 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: Control value passing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Control value passing


  • Subject: Re: Control value passing
  • From: Bill Stewart <email@hidden>
  • Date: Mon, 30 Sep 2002 11:00:50 -0700

on 30/9/02 3:35 AM, Urs Heckmann wrote:

> Am Montag, 30.09.02, um 07:32 Uhr (Europe/Berlin) schrieb Art Gillespie:
>
>>> I register the custom control with
>>> auView->AddCarbonControl(sliderType, auvp, newControl), but it looks
>>> like the changes of the control are never parsed by
>>> AUCarbonViewControl::HandleEvent().
>>>
>>
>> You have to fire the ValueFieldChanged event from your control when
>> its value changes. Do this by calling SetControl32BitValue(ControlRef
>> theControl, UInt32 theValue).
>
> I use SetControlValue but I can change that. Dunno if it makes any
> difference.
>
> Is the whole range of UInt32 meant to traverse min to max (0.f - 1.f,
> vst-like) of a parameter, then?

For a control, you have an integer range from the control's min and max
value - so when displaying a floating point parameter value you have to
scale this to the resolution of the control itself.

Unless you're showing a lot of pixels! I doubt that you'd need the 32bit
version. - This is why the AU view provides an enter text box for values,
because a slider cannot provide the resolution the parameter can represent
in most cases.

SetControlValue should fire the value changed callback if the value is
actually changing - the AUView code relies on this behaviour between the
slider and the text box to keep them in sync

Bill

> _______________________________________________
> coreaudio-api mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> Do not post admin requests to the list. They will be ignored.

--
mailto:email@hidden
tel: +1 408 974 4056

__________________________________________________________________________
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
__________________________________________________________________________
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Control value passing
      • From: Urs Heckmann <email@hidden>
References: 
 >Re: Control value passing (From: Urs Heckmann <email@hidden>)

  • Prev by Date: Re: graphics in AU
  • Next by Date: Re: more AudioUnitRender Errors
  • Previous by thread: Re: Control value passing
  • Next by thread: Re: Control value passing
  • Index(es):
    • Date
    • Thread