Re: reset a DefaultOutput device
Re: reset a DefaultOutput device
- Subject: Re: reset a DefaultOutput device
- From: Kurt Bigler <email@hidden>
- Date: Tue, 13 May 2003 23:04:50 -0700
on 5/13/03 10:12 PM, Scott Frankel <email@hidden> wrote:
>
I'm playing with the DefaultOutputUnit code and am wondering
>
how to reset the audio tone output without killing a tone currently
>
playing.
>
>
I've setup a test app that connects a slider widget to thesToneFrequency
>
parameter of the DefaultOutputUnit's tone generator. Moving the slider
>
changes the frequency of the tone generated. Trouble is, I have to
>
Close
>
the DefaultAudioUnit to not get multiple AU's all playing
>
simultaneously.
I'm not looking at the code - I assume you are working with the default
output sample application - but maybe this will be of some help anyway...
I'm guessing that you probably want to neither close nor reopen the default
output to change your test tone. Just leave the whole thing running and
change the parameters that affect the tone generation. In other words, you
probably want to just change something happening in the render function.
>
>
If I do Close the AU, then I get an audible "pop" with each slider
>
movement.
The slider should probably just change a variable which the render function
tone generator refers to.
Hope that helps.
-Kurt Bigler
>
>
AudioUnitReset doesn't do the trick (and seems to be more germane
>
to Midi anyway).
>
>
Thanks in advance.
>
Scott
>
_______________________________________________
>
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.
_______________________________________________
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.