Re: Changing System Audio Output - Notifications to Apps?
Re: Changing System Audio Output - Notifications to Apps?
- Subject: Re: Changing System Audio Output - Notifications to Apps?
- From: Jeff Moore <email@hidden>
- Date: Thu, 6 May 2010 17:10:39 -0700
If you are changing kAudioHardwarePropertyDefaultSystemOutputDevice, you are doing it wrong. The system default output device is the device used for things like interface sounds, alert sounds, etc. What you want to adjust is kAudioHardwarePropertyDefaultOutputDevice which is the default device used for content.
That said, a lot of apps have their own UI for selecting the device they use and so won't follow what you set with kAudioHardwarePropertyDefaultSystemOutputDevice or kAudioHardwarePropertyDefaultOutputDevice regardless. For example, if you are running GarageBand and set it's audio device to something other than "System Setting", the app will stop following changes to the default device.
On May 6, 2010, at 5:01 PM, Seth Willits wrote:
> In my Mac application I am changing the system audio output device so that applications will send audio to this new device (Soundflower). That part is easy. The problem is that some applications don't respect that change for some reason, and instead keep sending audio to the previous device (speakers, for example).
>
> I'm curious why it works for some applications and not others. I imagine that somehow the applications that don't switch to the new device are somehow explicitly setting up their audio streams to send to device that was the system output when they launched, and ignoring any notifications.
>
> Are there any notifications? Is there something I can do to make those apps switch?
--
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