• 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: Set output device and settings from console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set output device and settings from console


  • Subject: Re: Set output device and settings from console
  • From: Mark <email@hidden>
  • Date: Fri, 16 Jan 2009 18:57:14 +0100

Hi Jeff,

since I'm not really used to working with CA it helps a lot to know which classes I should look at.
It's also good to know the System provides no facility to do it - so I'm on the correct path.


Thanks.

Mark

On 16.01.2009, at 18:19, Jeff Moore wrote:

Basically, the answer to your question is that you have to write the command line tools that use the HAL to do what you want to do. The system doesn't provide anything like that for changing audio hardware settings.

HALLab is a fine starting point for doing this. Unless you are C++ phobic, it should be fairly easy for you to extract from HALLab what you need since HALLab encapsulates it's interaction with the HAL via three PublicUtility classes: CAAudioHardwareSystem, CAAudioHardwareDevice and CAAudioHardwareStream.

On Jan 16, 2009, at 7:57 AM, Mark wrote:

Ok - I just found the HALLab app that does what I want - so I know it's possible with CoreAudio.

Unless there's an easier way to do it, I'll take HALLab as starting point... ugh, that's not gonna be so easy.

mark


On 16.01.2009, at 16:36, Mark wrote:

Hi Bill,

this is for me, for some tests on a remotely controlled (ssh) Mac Mini - it's about testing various USB playback/DAC devices...

So, though not recommended for a commercial app (which make a lot of sense), I'd like to be able to change these setting from the command line.
It there a way or do I need to build a small core audio command line prog for that?
(Or can't I change these setting even with Core Audio?)


mark



On 16.01.2009, at 15:16, William Stewart wrote:

We generally prefer that you do not change the user's default device settings, but rather let this be in the control of a user directly (thus only UI such as Sound Pref Pane should change these)

We also generally recommend that you work with the current settings of a device rather than changing these as well.

So, perhaps the right place to start is to ask why/what you want to change here?

Bill

On Jan 16, 2009, at 10:02 PM, Mark wrote:

Hi all.

In System Preferences->Output one can choose the output device and in Audio Midi Setup the format of the output.
How can I change these settings from the console?
And ideally get a list of audio devices too.


Can this be done or just using APIs (in the later case I'd appreciate some pointers where to start looking).

Best
Mark
_______________________________________________
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


_______________________________________________ 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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



--

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

_______________________________________________ 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: 
 >Set output device and settings from console (From: Mark <email@hidden>)
 >Re: Set output device and settings from console (From: William Stewart <email@hidden>)
 >Re: Set output device and settings from console (From: Mark <email@hidden>)
 >Re: Set output device and settings from console (From: Mark <email@hidden>)
 >Re: Set output device and settings from console (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: Newbie question: mono playback to left or right speaker only?
  • Next by Date: ExtAudioFileSetProperty 'perm' error
  • Previous by thread: Re: Set output device and settings from console
  • Next by thread: SampleHardwarePlugIn sample
  • Index(es):
    • Date
    • Thread