Re: DLSMusicDevice problems in Leopard
Re: DLSMusicDevice problems in Leopard
- Subject: Re: DLSMusicDevice problems in Leopard
- From: "Roni Music" <email@hidden>
- Date: Sun, 13 Jan 2008 21:33:53 +0100
Message: 7
Date: Sun, 13 Jan 2008 13:55:19 -0600
From: "E. Tejkowski" <email@hidden>
Subject: DLSMusicDevice problems in Leopard
To: CoreAudio <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
I've been experiencing some issues with loading SF2/DLS into a graph
on Leopard. In particular, AudioUnitSetProperty is failing
spectacularly.
err = AudioUnitSetProperty (synthUnit,
kMusicDeviceProperty_SoundBankFSSpec, kAudioUnitScope_Global, 0,
&fsSpec, sizeof (fsSpec) );
I had the same problem
It seems that with Leopard one needs to stop the "synthUnit" (AUGraphStop)
before calling AudioUnitSetProperty (synthUnit,
kMusicDeviceProperty_SoundBankFSSpec....),
then restart it
this wasn't needed with Tiger and below.
Either this is a bug (seems so since the app crashes) or we were lucky that
it worked before without stoping?
btw, I also call AUGraphUninitialize() allthough this doesn't seem to be
needed (maybe will be with OS X 10.6)?
Rolf
The identical code works flawlessly in Tiger. Is anyone else
experiencing this? Is there a workaround or is it simply a known bug
for which I must wait for a fix?
It appears that my code is not alone in having this problem. If you
download the SimpleSynth demo from Pete Yandell. (http://
pete.yandell.com/software/), you'll see that it crashes in a similar
fashion (with an identical crash log) on Leopard (PPC or Intel). What
is peculiar, however, is that an older version of my own app that was
compiled for PPC will still run in Leopard (on a PPC) without a
crash. Hmmm...
Any ideas out there?
Thanks much,
Erick
_______________________________________________
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