• 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 : Help needed for Audio Unit Parameter Change Notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : Help needed for Audio Unit Parameter Change Notification


  • Subject: Re : Help needed for Audio Unit Parameter Change Notification
  • From: Rémi Thébault <email@hidden>
  • Date: Sun, 28 Oct 2007 01:33:08 +0200

Hello everybody

Just for information I've resolved my problem. I post this for other newbies like me having the same problem.

So the problem was in fact to create an indicator in the view (certainly i didn't explain very well) in order to get a value calculated within the process function refreshed in real-time on the view.

The solution was note to try to tell the view of the value change from the MainClass::Render or process (what i actually tried to do from the beginning and got lost into it) but to ask the view to check the parameter value and to update on regular time interval with a TimerLoopEvent. This solution is not possible with a generic view.

So a little resume :

	To use a parameter as indicator :
		its flag must be set as readable but not writable
		

		ComponentResult MainClass::Render(...) {
			...
			SetParameter( ParameterId, Value);
			...
		}


MainClassView::MainClassView(...) { ... CreateEventLoopTimer (...); ... }

		void MainClassView::RespondToEventLoopTimer(...) {
			// Code that update the view.
		}


This is of course customizable. For more information : /Developer/ Examples/CoreAudio/AudioUnits/CarbonGenericView.
This example implements some VU-Meters.


Thanks all Folks for the help
Rémi _______________________________________________
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: 
 >Help needed for Audio Unit Parameter Change Notification (From: "Rémi Thébault" <email@hidden>)
 >Re: Help needed for Audio Unit Parameter Change Notification (From: William Stewart <email@hidden>)
 >Re: Help needed for Audio Unit Parameter Change Notification (From: Rémi Thébault <email@hidden>)
 >Re: Help needed for Audio Unit Parameter Change Notification (From: Brian Willoughby <email@hidden>)
 >Re: Help needed for Audio Unit Parameter Change Notification (From: Rémi Thébault <email@hidden>)
 >Re: Help needed for Audio Unit Parameter Change Notification (From: William Stewart <email@hidden>)
 >Re: Help needed for Audio Unit Parameter Change Notification (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Simple Question on m4a CAStreamBasicDescription and Recording
  • Next by Date: Having AudioConverter recognise custom AudioCodec components
  • Previous by thread: Re: Help needed for Audio Unit Parameter Change Notification
  • Next by thread: Simple Question on m4a CAStreamBasicDescription and Recording
  • Index(es):
    • Date
    • Thread