Re: Overriding the default output within an app
Re: Overriding the default output within an app
- Subject: Re: Overriding the default output within an app
- From: Brian Willoughby <email@hidden>
- Date: Fri, 11 Sep 2009 10:29:51 -0700
There's no one API to do what you want, but you can certainly combine
the application preferences with code to set the output device and
roll your own. Since there are many different API for producing
sound in your app, and some of them have methods for selecting an
output device other than the global user default, all you need to do
is make your own preference setting, and read it when your
application starts up its audio. You can also add this setting to a
preferences panel UI and write the preference when the user selects a
different output device, or you could simply leave it as a hidden
feature accessed only by the command-line preferences interface.
Brian Willoughby
Sound Consulting
On Sep 11, 2009, at 10:20, Gregory Weston wrote:
New to Core Audio, as I'm sure you'll guess. I've been digging
through docs, headers, sample code and the archives and I suspect
it's just a result of density (information or my own) that prevents
me from finding this.
As of 10.5, Cocoa's NSSound class has a method to specify the
output device to be used for that sound. I can also, of course, in
code change the default output device. What I'm looking for is the
middle ground. Is there some relatively understandable and
supported technique I can use to set the default output device for
my app and then for the most part not worry about it thereafter?
I'm getting the impression, mostly from list postings, that the
answer is: No. There really isn't a reliable means to say any audio
generated under the auspices of my app will go "here" while
everything else will continue to go "there." But I'd appreciate
confirmation (or even better a correction) for closure.
_______________________________________________
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