relationship between io buffer duration, # frames and audio buffer size
relationship between io buffer duration, # frames and audio buffer size
- Subject: relationship between io buffer duration, # frames and audio buffer size
- From: Joel Reymont <email@hidden>
- Date: Wed, 11 Feb 2009 17:03:28 +0000
I'm trying to use Remote IO, linear PCM at 44100 and a duration of
0.005, i.e.
audioFormat.mSampleRate = 44100;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagIsPacked;
audioFormat.mFramesPerPacket = 1;
audioFormat.mChannelsPerFrame = kChannelsPerFrame;
audioFormat.mBitsPerChannel = 16;
audioFormat.mBytesPerPacket = 2;
audioFormat.mBytesPerFrame = 2;
kAudioSessionProperty_CurrentHardwareSampleRate actually starts out at
0.0232 and changes to 0.003 after I set
kAudioSessionProperty_PreferredHardwareIOBufferDuration.
I'm asked to grab 512 frames (inNumberFrames) in my recording callback.
How big should my audio buffer be for 3 and 5ms respectively?
I tried 512 x 16bits but that gives me an immediate crash.
Thanks, Joel
---
http://tinyco.de
--- Mac & iPhone
_______________________________________________
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