SimpleAudioDriver and sample rate.
SimpleAudioDriver and sample rate.
- Subject: SimpleAudioDriver and sample rate.
- From: Eric Gorouben <email@hidden>
- Date: Mon, 25 Mar 2013 11:27:41 +0100
Hi,
I never could get SimpleAudioDriver to work.
The sample rate always stays on 0.00Hz and no software accepts it.
A kAudioDevicePropertyNominalSampleRate (among others) seems to be misplaced in Device_HasProperty:
> ...
> case kAudioDevicePropertyDeviceCanBeDefaultDevice:
> case kAudioDevicePropertyDeviceCanBeDefaultSystemDevice:
> case kAudioDevicePropertyNominalSampleRate:
> case kAudioDevicePropertyTransportType:
> ...
> theAnswer = (inAddress.mScope == kAudioObjectPropertyScopeGlobal) && (inAddress.mElement == kAudioObjectPropertyElementMaster);
> break;
should be
> ...
> case kAudioDevicePropertyDeviceCanBeDefaultDevice:
> case kAudioDevicePropertyDeviceCanBeDefaultSystemDevice:
> case kAudioDevicePropertyNominalSampleRate:
> case kAudioDevicePropertyTransportType:
> ...
> theAnswer = ((inAddress.mScope == kAudioObjectPropertyScopeGlobal) || (inAddress.mScope == kAudioObjectPropertyScopeInput) || (inAddress.mScope == kAudioObjectPropertyScopeOutput)) && (inAddress.mElement == kAudioObjectPropertyElementMaster);
> break;
>
As they all get asked for with different possible scopes.
(I also get the proper transport icon that way)
Is that correct? Are there any other known and already fixed issues?
Thanks
Eric
_______________________________________________
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