• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to programmatically change the default sound output device?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to programmatically change the default sound output device?


  • Subject: Re: How to programmatically change the default sound output device?
  • From: "Mikael Hakman" <email@hidden>
  • Date: Fri, 18 Jan 2008 11:30:44 +0100
  • Organization: Datakonsulten AB

Brian Willoughby <email@hidden> wrote:

Why are you doing this, and what are the other media applications
you're talking about?

I'm doing this on explicit request from the users. Some of the media applications are known, some are from Apple, some aren't, and some aren't written or purchased yet. I have no way of knowing the future.

Perhaps it would help to mention that, if you are writing a media
application, you can send audio to a device other than the default.
Better media applications should allow the user to pick a different
output device besides the default.

No, I'm not writing media application. Yes, every media application should allow the user to configure (and remember it to the next time) where to output and/or input media to/from. Albeit not all do, not even those from the masters. Even if the did that wouldn't solve the problem. My users work with 2 - 3 different main tasks. Every task requires different audio and display devices, and some other settings. The users don't want to constantly walk to various preferences and change things. They want one click or one key press to setup everything they need for a particular task.

However, if you are trying to extend the options for existing media
applications where you don't have the source, I can see how there
might be an advantage to changing the default audio output device if
those media applications do not allow specifying an audio device.

I'm trying to easy users' life and work.

Be warned, though, that if the user changes the default audio output
device while any media application is running, then the audio for the
running applications will be interrupted.  Your design is not likely
to work when multiple media applications are running at the same time
connected to the default audio output device.

Perhaps it depends on how the application and the actual driver(s) are written. I tested my little shell tool to change the default output while playing a track in iTunes - it works like a breeze. There is a short pause (just a click) and then audio continues from the new device. However this is not what the users will normally do.

Sorry if I am being pedantic, but your design sounds potentially like
it will run into some trouble.

I understand your concerns and I thank you for valuable insight.

Thanks/Mikael

_______________________________________________
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


References: 
 >How to programmatically change the default sound output device? (From: "Mikael Hakman" <email@hidden>)
 >Re: How to programmatically change the default sound output device? (From: Brian Willoughby <email@hidden>)

  • Prev by Date: Re: How to programmatically change the default sound output device?
  • Next by Date: Re: How to programmatically change the default sound output device?
  • Previous by thread: Re: How to programmatically change the default sound output device?
  • Next by thread: Late MIDI note events in Logic & GarageBand
  • Index(es):
    • Date
    • Thread