Re: Sound Manager Crashing
Re: Sound Manager Crashing
- Subject: Re: Sound Manager Crashing
- From: Mark Thomas <email@hidden>
- Date: Fri, 22 Feb 2002 15:00:50 +0000
- Organization: Coderus Ltd
Hi
>
1) You need to init your sound channel to something. NULL will delegate
>
that task to the sound manager.
It was a copy and paste job, just forgot to copy the setting to zero.
>
2) You also need to pass a pointer to the volume command in the param2
>
to get something out of the call.
>
I must have been using some undocumented feature if you don't specify
anything i.e NULL, as the volume was being returned in the param2 in MacOS
9.x. Its was working honest !!!.
Very strange :-(
Thanks away.
Mark.
>
>
>
On Wednesday, February 20, 2002, at 05:46 AM, Mark Thomas wrote:
>
>
> Hi Guys,
>
> Does any one know why the sound manager crashes, if you create a
>
> sound
>
> channel and then request the volume of the channel straight after code
>
> looks
>
> like this: -
>
>
>
> SndChannelPtr mSndChannel;
>
> SndCommand sndCmd={getVolumeCmd,0, 0};
>
>
>
> err = SndNewChannel ( &mSndChannel, sampledSynth, initStereo, NULL );
>
> SndDoImmediate (mSndChannel,&sndCmd);
>
>
>
> It crashes 3 levels deep in SndDoImmediate. I have a test application
>
> ,which
>
> demos this as well, if anyone wants it.
>
>
>
> This works fine in MacOS 9.x.
>
>
>
> Any Ideas, Possible bug maybe ????
>
>
>
> Thanks
>
> Mark.
>
> _______________________________________________
>
> 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.