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: "email@hidden" <email@hidden>
- Date: Mon, 01 Oct 2012 07:35:35 -0700
>> 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é
Thanks for the tip Rene. I will check out DefaultOutputUnit. What is your iTunes plugin called? I'd like to check it out. To clarify, I don't feel obliged to use Objective C, I would just rather not learn two new languages at once. However, in retrospect, Objective C is probably more difficult to learn than C++ anyway since I have a C# .NET background.
> This issue crops up fairly regularly. The problem with any application changing the device sample rate is that other applications may also (concurrently) be trying to do so as well, an easy and obvious possibility of contention. Ostensibly, this task should be left expressly to the user to do, globally, externally, through whatever control panel is available. These days, it is arguably inappropriate for any developer to assume or expect that their application is the only one running.
>
> Richard Dobson
I understand and respect what you are saying. However, in certain cases, this simply cannot be avoided. For audio purists, converting the sample rate for music/video is extremely undesirable. In my particular case, the software running should be assumed to be the only software running as it is a HTPC app. Encoded DTS and Dolby Digital audio cannot be passed to an external decoder without the hardware sample rate being set appropriately.
Mike
_______________________________________________
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