Re: CoreAudio driver's convertInputSamples() revisited
Re: CoreAudio driver's convertInputSamples() revisited
- Subject: Re: CoreAudio driver's convertInputSamples() revisited
- From: Tommy Schell <email@hidden>
- Date: Tue, 29 Mar 2005 11:15:48 -0700
After further trial and error I've concluded that the optimized conversion routines that come with PhantomAudioDriver,
particularly the NativeInt32toFloat32 routine, does indeed work fine as long as you high byte align the data (as was suggested
in an earlier email).
The problems I was having stemmed largely from the call from PhantomAudioDriver's convertInputSamples that I was using,
which had 2 problems:
the 1st arg needs to be offset by firstSampleFrame
*fNumChannels, the 2nd arg needs to point to destBuf:
NativeInt32ToFloat32(&(((long *)sampleBuf)[firstSampleFrame*streamFormat->fNumChannels]), (float *)destBuf, numSampleFrames * streamFormat->fNumChannels, 32);
That's it
_______________________________________________
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