Re: Grabbing system's audio output OR Changing the default audio output hardware
Re: Grabbing system's audio output OR Changing the default audio output hardware
- Subject: Re: Grabbing system's audio output OR Changing the default audio output hardware
- From: Jeff Moore <email@hidden>
- Date: Wed, 03 Sep 2008 12:15:10 -0700
On Sep 3, 2008, at 12:04 PM, Half Activist wrote:
Hi everybody,
I have two questions:
1/ Can I grab the system's audio output? I mean what plays safari,
etc, the default output
There is no API for doing this.
If not
2/
I'll use soundflower so:
I'd like to change the default system audio output, ie without
getting into the system preferences, programatically.
I know I should not do this, yet I really need to change it.
You can always change the default device via the HAL API. There are
catches however. First, you can't change the default device for a user
different than the euid of the process. Secondly, not all applications
use the default device. Some apps have their own device selection UI
(for example: iChat and Logic). You can't programmatically control
apps like that (although you might be able to use Automator scripts
for some of them).
What I'm trying to do is to grab the system's audio output because
I want to add effects on it, and use multiple sources such as
iTunes, youtube, games etc etc as if they were all generators but I
can't set the audio output for safari,
and other non audio applications.
Yes I'm trying to make a weird application lol I know.
Regards.
PS: I really REALLY know I should NOT change the system preferences
whithout telling the user, but I'm going to tell the user I changed
it, I'll even tell then what I did, only this will be a shortcut.
Have you looked at Jack (http://www.jackosx.com/)? It pretty much does
everything you want to do at least in terms of routing audio between
processes.
--
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