Hi:
I read in an obviously dated book (Foundations of Mac Programming by
Sydow), that one could find the current volume level for the sound
control panel by using:
in C
long theOrginalVol;
GetDefaultOutPutVolume( &theOriginalVol );
And, then to set the volume, one would use:
Again, in C
long theNewVolume = 0x04000400
SetDefaultOutputVolume( theNewVolume );
However, I find no:
GetDefaultOutPutVolume( &theOriginalVol );
SetDefaultOutputVolume( theNewVolume );
similar FB functions.
Now, I know that I can use the Sound Manager and change the volume
and channel (right and left) of what's being played via _ampCmd and
_volumeCmd commands using param1 and param2, but that's not my
question.
I want to know how to change the volume settings in the system sound
control panel. This means that after doing such, the values that the
user has set in the sound control panel will change.
Please, I do know enough to change them back after I'm finished -- I
just don't know enough as to how to change them in the first place.
Thanks.
tedd
--
http://sperling.com