kAudioDevicePropertyBufferFrameSizeRange reports wrong values
kAudioDevicePropertyBufferFrameSizeRange reports wrong values
- Subject: kAudioDevicePropertyBufferFrameSizeRange reports wrong values
- From: Rolf Nilsson <email@hidden>
- Date: Mon, 15 Nov 2004 08:54:35 +0100
Hi,
The following code works fine with the built in audio device on my Dual
G4 running OS 10.2.8 (and 10.3.6 as well)
but not when using an iMic.
UInt32 desiredFrameSize = 2048;
AudioValueRange theAudioValueRange;
// check that the desired value is within the allowed range
UInt32 propsize = sizeof(AudioValueRange);
OSErr theErr = AudioDeviceGetProperty(mID, 0, false,
kAudioDevicePropertyBufferFrameSizeRange, &propsize, &
theAudioValueRange);
if (desiredFrameSize < theAudioValueRange.mMinimum)
desiredFrameSize = theAudioValueRange.mMinimum;
else if (desiredFrameSize > theAudioValueRange.mMaximum)
desiredFrameSize = theAudioValueRange.mMaximum;
// values is now within correct ranges
propsize = sizeof(UInt32);
theErr = AudioDeviceSetProperty(mID, NULL, 0, false,
kAudioDevicePropertyBufferFrameSize, propsize, & desiredFrameSize);
For the iMic, the reported maximum value is 4608 which is way below the
requested 2048;
If I lower the desired frame size to 1024 it works fine (actually the
highest value that works is 1156 which is about 4608/4 but not exactly).
Is this a bug in the iMic driver or am I missing something obvious?
Thanks
Rolf
_______________________________________________
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