Re: Does anybody implement 'reset' in their Instrument Audio Units?
Re: Does anybody implement 'reset' in their Instrument Audio Units?
- Subject: Re: Does anybody implement 'reset' in their Instrument Audio Units?
- From: Eagle Offshore <email@hidden>
- Date: Fri, 26 Feb 2010 11:21:13 -0800
Idle means mixer channel mute button pressed in my host. Device must not make sound! You could argue that just turning off the output volume accomplishes this, and it does, but that doesn't get my user back his CPU cycles. Given the nature of my app, un-muting the channel and having the audio decays resume (and acting like they've been paused) is not acceptable. In this scenario - 'mute' means audio off and reset MIDI state and audio output. Typically, the AU's UI isn't open but even if it is, it shouldn't work (make sound) in this scenario.
What does work is setClassInfo - but some samplers take this as an opportunity to reload all their samples - regardless of whether they've changed. Some instruments do the same and take a few ticks to get ready to play again.
I've checked the return values for AudioUnitReset - no errors are reported. Reset should work regardless of state - correct?
-Todd Blanchard
http://audiofreakshow.com
On Feb 25, 2010, at 3:54 AM, Muon Software Ltd - Dave wrote:
>>> I've been mucking about with trying to reduce CPU load by removing idle instruments from the AUGraph.
>
> Define "idle"...an instrument with a preview feature may need to output audio even when there's no MIDI, the transport is stopped and long after any tails have faded. Even an instrument with an onscreen keyboard is not genuinely idle in such circumstances, as the user may click on the GUI to make a sound at any point they choose.
>
> I understand that Logic has some concept of a "focus" track - so long as the instrument's track is selected (and maybe only when the GUI is visible?) it is rendered continuously. This seems to be a necessary feature to me if you're going to shut down idle instruments.
>
> Kind regards
>
> David Waugh
> Managing Director
> Muon Software Ltd
> http://www.muon-software.com
> http://muonsoftware.blogspot.com
> _______________________________________________
> 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
_______________________________________________
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