Re: Changing the system volume?
Re: Changing the system volume?
- Subject: Re: Changing the system volume?
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 4 Jun 2003 13:38:50 -0700
Have you tried the Carbon API "SetDefaultOutputVolume" ?
I haven't used it recently but it might be good enough for your needs.
The only limitation would be if there is some soft limit on the maximum
value that you could override by talking directly to CoreAudio.
For your purposes, it doesn't sound like you need (or want) the level
of control that using CoreAudio would give you.
Good luck!
Daniel
On Wednesday, June 4, 2003, at 09:24 AM, Eric Shapiro wrote:
>
Is there a snippet of code somewhere on how to change the system
>
volume?
>
>
I've been searching Apple's web site, usenet, and the core audio list
>
archives, but the only clues I see are that either
>
"IOAudioLevelControl::CreateVolumeControl()" or
>
"SoundComponentSetInfo(siHardwareVolume)" might be the right approach.
>
But no further documentation on the subject.
>
>
I need control the audio volume in MacOS X 10.2 from a C/C++
>
user-level Carbon/Mach-O application that will run with no real user
>
input. The program needs to be able to unmute the built-in speaker and
>
change the volume as needed. In the old MacOS days, there was a low
>
memory global to control the volume and later some system calls, but
>
neither of those work on MacOS X.
>
>
Thanks,
>
Eric Shapiro
>
>
-----------------------------------------------
>
Eric Shapiro email@hidden
>
-----------------------------------------------
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.