Re: kAudioDevicePropertyBufferFrameSizeRange reports wrong values
Re: kAudioDevicePropertyBufferFrameSizeRange reports wrong values
- Subject: Re: kAudioDevicePropertyBufferFrameSizeRange reports wrong values
- From: Jeff Moore <email@hidden>
- Date: Mon, 15 Nov 2004 11:28:44 -0800
I just played around with my iMic and I could set the buffer frame size
to any value within the range the HAL reported, including 2048. You'll
need to be more specific about the failure you are seeing and the code
you are using before I can give you any advice.
On Nov 14, 2004, at 11:54 PM, Rolf Nilsson wrote:
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
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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