Re: CoreAudio driver's convertInputSamples()
Re: CoreAudio driver's convertInputSamples()
- Subject: Re: CoreAudio driver's convertInputSamples()
- From: Tommy Schell <email@hidden>
- Date: Tue, 22 Mar 2005 15:26:30 -0700
Just for the record: in PhantomAudioDriver's implementation of
convertInputSamples(),
the call to the optimized conversion routine:
NativeInt32ToFloat32(&(((long *)sampleBuf)[firstSampleFrame]),
&(((float *)sampleBuf)[firstSampleFrame]), numSampleFrames *
streamFormat->fNumChannels, 32);
The 2nd argument should be pointing in to destination buffer, and I
believe should look like so:
NativeInt32ToFloat32(&(((long *)sampleBuf)[firstSampleFrame]), (float
*)destBuf, numSampleFrames * streamFormat->fNumChannels, 32);
That was part of the problem
_______________________________________________
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