• 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: Paremeter changes by the user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paremeter changes by the user


  • Subject: Re: Paremeter changes by the user
  • From: William Stewart <email@hidden>
  • Date: Wed, 16 Jun 2004 11:15:34 -0700

On 16/06/2004, at 9:31 AM, Aristotel Digenis wrote:

> Hello,
>
> I have recently started to learn programming for AudioUnits. I have
> been using the SampleEffectUnit example that comes with the SDK to
> make a few changes and experiment with things. I have now come to an
> absolute state of confusion.
>
> I have a parameter on the default GUI with a range between 0.0 and 1.0
> with the default value at 0.0. I would like to make a simple gain
> effect for the sake of learning about parameter control. I have
> declared a "gainValue" float and i want when the slider is moved, that
> value to be passed to the "gainvalue" float. gainValue will be used in
> the processing section of the code to apply it to the samples as
> amplitude (sample = sample * gainValue).
>
> Does the getParameter() function automatically get called when the
> user moves a slider in the default GUI just like it happens in VSTs?
> Having read the documentation of the SDK it seems I need to use
> Listeners. And this is where it gets confusing. There is a list of
> listener related functions int eh documentation, then there posts in
> this mailing lists which suggest the API is changing to a new method
> of dealing with events. then there is the AUPropertiesPostPanther.h
> file which seems to play a role in this change, yet I cannot compile
> my code if that header is included ( i get tons of errors).
>
> Could somebody explain how the AudioUnit knows when a slider has
> moved?Is it event listener? or parameter listener?
>

The UI calls your Audio Unit's SetParameter call, to set the new value
of a parameter. Your AU doesn't need to know anything about listeners -
that is for host-UI communication (at least in this case)

All that your AU does in its Render call is to get the current value of
the parameter and apply it - thus, you'd get the value of the gain
parameter.

You'd need to make sure that the AU is publishing the parameter
correctly - so I'd suggest the first thing to do is to run the
AUValidation Tool on the AU that you've made - you can see there that
the parameter is published, etc... (The AUV can be downloaded from
http://developer.apple.com/audio)

Bill

> Thank you in advance
>
> --
> Aristotel Digenis
> email@hidden
> http://www.digenis.ws
> _______________________________________________
> 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

________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
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: Paremeter changes by the user
      • From: Aristotel Digenis <email@hidden>
References: 
 >Paremeter changes by the user (From: Aristotel Digenis <email@hidden>)

  • Prev by Date: Rax Compatibility Tables
  • Next by Date: Re: Multiple HALAOUs don't get along?
  • Previous by thread: Paremeter changes by the user
  • Next by thread: Re: Paremeter changes by the user
  • Index(es):
    • Date
    • Thread