• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SimpleAudioDriver and sample rate.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SimpleAudioDriver and sample rate.


  • Subject: Re: SimpleAudioDriver and sample rate.
  • From: Eric Gorouben <email@hidden>
  • Date: Mon, 25 Mar 2013 19:25:01 +0100

Hmmm... I changed them because traces showed they had been called with those scopes. And this fixed the missing sample rate and icon.
Eric

Le 25 mars 2013 à 19:01, Jeff Moore <email@hidden> a écrit :

> Well you are close.
>
> You are correct in that kAudioDevicePropertyDeviceCanBeDefaultDevice and kAudioDevicePropertyDeviceCanBeDefaultSystemDevice will be asked about on the input scope output scope. They won't be asked about on the global scope. I have updated the example code.
>
> However, kAudioDevicePropertyNominalSampleRate and kAudioDevicePropertyTransportType will only be asked about on the global scope.
>
> --
>
> Jeff Moore
> Core Audio
> Apple
>
>
>
> On Mar 25, 2013, at 3:27 AM, Eric Gorouben <email@hidden> wrote:
>
>> 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
>


 _______________________________________________
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


References: 
 >AudioServerPlugin crashing (From: Tuviah Snyder <email@hidden>)
 >Re: AudioServerPlugin crashing (From: Jeff Moore <email@hidden>)
 >SimpleAudioDriver and sample rate. (From: Eric Gorouben <email@hidden>)
 >Re: SimpleAudioDriver and sample rate. (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: Saving a sound file with a specific duration
  • Next by Date: Re: Coreaudio-api Digest, Vol 10, Issue 101
  • Previous by thread: Re: SimpleAudioDriver and sample rate.
  • Next by thread: HALLab I/O Cycle Telemetry
  • Index(es):
    • Date
    • Thread