• 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
problem setting sampling rate for speaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem setting sampling rate for speaker


  • Subject: problem setting sampling rate for speaker
  • From: gopinath sankar <email@hidden>
  • Date: Thu, 17 May 2012 19:27:27 -0700

Hello,

I can't seem to get the audio to render at 48khz. I set the sampling
rate to 48000.0f, it seems to accept it fine. But when I add a timing
code in my render callback I only get around 441000 samples per
second. I am getting called 94 times a second and each time I play 470
bytes (noFrames of the render callback as well as
mBuffers[0].mDataByteSize/sizeof(AudioUnitSampleType) point to 470)
making it 441000 samples per second.

I am assuming if I should be able to play out 512 frames per call to
get 48khz rendering.
Also, is there a way I can play with frames per call vs. no. calls per
second? I have set the kaudioDevicePropertyBufferSize to 512 *
sizeof(Float32) and it seemed to be picking it up (get returns the
value I set) but it seems to be  ignored while rendering in favor of
470 samples.

Thanks,
Gopinath
 _______________________________________________
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

  • Follow-Ups:
    • Re: problem setting sampling rate for speaker
      • From: gopinath sankar <email@hidden>
  • Prev by Date: Re: iOS AVAudioSession AVAudioSessionCategoryPlayAndRecord problem with volume levels
  • Next by Date: Discussion about Learning Core Audio book
  • Previous by thread: Re: iOS AVAudioSession AVAudioSessionCategoryPlayAndRecord problem with volume levels
  • Next by thread: Re: problem setting sampling rate for speaker
  • Index(es):
    • Date
    • Thread