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: Jeff Moore <email@hidden>
- Date: Fri, 11 Sep 2009 10:29:04 -0700
The mechanism for doing what you are asking about is the various APIs
that are explicit about what audio device is to be used for IO. So, to
get the effect you want, you simply need to code your app using these
APIs rather than the APIs that use the default device.
On Sep 11, 2009, at 10:20 AM, 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.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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