Re: Set output device and settings from console
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