Re: Changing Default Device and Sample Rate via Objective C
Re: Changing Default Device and Sample Rate via Objective C
- Subject: Re: Changing Default Device and Sample Rate via Objective C
- From: "René J.V. Bertin" <email@hidden>
- Date: Tue, 02 Oct 2012 12:23:35 +0200
For changing only the sample rate of a hardware output device, use AudioDeviceSetProperty with kAudioDevicePropertyNominalSampleRate . I think that API was maybe not even used in the example I pointed you to, I remember that my first attempts to change the output rate were met with permissions errors. Sorry about that, I should have pointed you to CAPlayThrough.
R.
On Oct 01, 2012, at 16:44, email@hidden wrote:
>> You're not obliged at all to use ObjC as the API for what you're asking is C++ - at least concerning the sample rate changing. I've never felt the need to change the default output device, so I cannot comment on that.
>> Have a look at the DefaultOutputUnit example, it's what I used to write my sample rate plugin for iTunes.
>>
>> René
>
> DefaultOutputUnit appears to be deprecated:
_______________________________________________
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