problem setting sampling rate for speaker
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