Re: AudioDevice init problem
Re: AudioDevice init problem
- Subject: Re: AudioDevice init problem
- From: Chuck Carlson <email@hidden>
- Date: Tue, 6 Oct 2009 09:32:52 -0700
Fixed this problem by including the Carbon framework in the project.
The code size of the executable is the same, but now no more EXC_BAD_ACCESS's.
What a puzzler. Anyone know why this fixes the problem?
--Chuck
On Mon, Oct 5, 2009 at 11:18 PM, Chuck Carlson <email@hidden> wrote:
> Hello,
>
> I'm adding CoreAudio capability to a BSD shell tool using the
> AudioDevice api (AudioDeviceStart(), AudioDeviceStop(), etc).
>
> I can start, stop at will with no problems, but when I exit the tool
> and start again, I get a EXC_BAD_ACCESS from an obgc_msgSend after the
> first AudioDeviceSetProperty or AudioDeviceGetPropery. I have to
> reboot to run successfully again.
>
> I've added AudioHardwareUnload before exiting with no success.
>
> This is the same code ported from a Cocoa version, so it seems that
> there is some initialization or cleanup problem that is not happening
> in a BSD shell tool.
>
> Any ideas?
>
> Thanks
>
> --Chuck
>
_______________________________________________
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