• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreAudio driver's convertInputSamples() revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >CoreAudio driver's convertInputSamples() (From: Tommy Schell <email@hidden>)
 >Re: CoreAudio driver's convertInputSamples() (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: Thread count strangeness using PlayAudioFile sample code
  • Next by Date: Re: AUBufferList::CopyBufferContentsTo()
  • Previous by thread: Re: CoreAudio driver's convertInputSamples()
  • Next by thread: Binary Compatibility in AppleUSBAudioPlugin.h
  • Index(es):
    • Date
    • Thread