Re: AU Render() and multi-out MusicDevice
Re: AU Render() and multi-out MusicDevice
- Subject: Re: AU Render() and multi-out MusicDevice
- From: David Duncan <email@hidden>
- Date: Thu, 30 Sep 2004 12:51:11 -0400
On Sep 30, 2004, at 11:48 AM, Malcolm Haylock wrote:
// silence
for (long o=0; o<fNumOutputs; ++o)
if(outs[o])
memset(outs[o], 0, sizeof(float)*sampleFrames);
return noErr;
}
Under a pevious version of the host all works fine, with
asOutBufs.mNumberBuffers=8. Under the latest version
asOutBufs.mNumberBuffers=2. Therefore the above code does nothing
to the other 6 channels resulting in noise on these channels.
Please let me know if anything is wrong with my methodology above.
Are you sure your host isn't now interleaving some of the streams? If
you want to silence a buffer, instead of sizeof(float)*sampleFrames,
use the mDataByteSize field to determine how much to zero.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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