Re: atexit and kAudioDevicePropertyDeviceIsRunning problem
Re: atexit and kAudioDevicePropertyDeviceIsRunning problem
- Subject: Re: atexit and kAudioDevicePropertyDeviceIsRunning problem
- From: Michael Guntsche <email@hidden>
- Date: Fri, 28 Apr 2006 21:18:48 +0200
On Apr 28, 2006, at 21:02, Jeff Moore wrote:
Why even do that much work? There's no reason to. The kernel will
take care of cleaning up any open AUs as a matter of course as part
of tearing the process down.
Well, the libao library is a very simple one. To change the sampling
rate you have to close it and re-open the device. So a close might
get called and then "open" again without closing the whole
application. If I do not tear down the audiounit in close I might
risk that a second audiounit gets created.
I just tried it, I removed the loop that checks for remaining data
and just close the Audiounit and adplay closed without hanging.
Well, thanks a lot for the time you have taken to help my Jeff.
Kind regards,
Michael
_______________________________________________
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