can't set low sound volume on one machine but can on other
can't set low sound volume on one machine but can on other
- Subject: can't set low sound volume on one machine but can on other
- From: Matt Neuburg <email@hidden>
- Date: Mon, 17 Apr 2006 17:41:24 -0700
- Thread-topic: can't set low sound volume on one machine but can on other
I am calling SetDefaultOutputVolume() and then calling
GetDefaultOutputVolume() to see what actually happened.
On one of my machines (iMac G5), this works fine for low values. QuickTime
seems to have in mind certain discrete values to which it will change my
setting, but the change is acceptably close. Bear in mind that the values
are actually two numbers, one for each channel (one in the hi byte, one in
the lo byte). Examples:
SetDefaultOutputVolume(131074) - i.e., 0x20002
GetDefaultOutputVolume(65537) - i.e., 0x10001
level is 1
SetDefaultOutputVolume(327685) - i.e., 0x50005
GetDefaultOutputVolume(262148) - i.e., 0x40004
level is 4
And if I set to zero, I get zero. So far so good.
But on my other machine (iBook G3) I get very different behavior:
SetDefaultOutputVolume(131074) - i.e., 0x20002
GetDefaultOutputVolume(1376277) - i.e., 0x150015
level is 21
SetDefaultOutputVolume(0) - i.e., 0x0
GetDefaultOutputVolume(1376277) - i.e., 0x150015
level is 21
As you can see, my attempts to set the level to 2, or zero, result in the
level being set to 21 (hex 15). I can't set the sound volume to *any* level
lower than 21 on that machine.
Why this inconsistency between my two machines, and what can I do about it?
Thx - m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden