• 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()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: CoreAudio driver's convertInputSamples()
  • Next by Date: Speaker setup + possible typo in CoreAudioTypes.h label value?
  • Previous by thread: Re: CoreAudio driver's convertInputSamples()
  • Next by thread: Re: CoreAudio driver's convertInputSamples() revisited
  • Index(es):
    • Date
    • Thread