Searched defs:vol (Results 1 - 3 of 3) sorted by relevance

/openjdk7/jdk/src/solaris/native/com/sun/media/sound/
H A DPLATFORM_API_BsdOS_ALSA_Ports.c643 static void setFakeVolume(PortControl* portControl, float vol, float bal) { argument
648 volumeLeft = vol;
649 volumeRight = vol * (bal + 1.0f);
651 volumeLeft = vol * (1.0f - bal);
652 volumeRight = vol;
H A DPLATFORM_API_LinuxOS_ALSA_Ports.c643 static void setFakeVolume(PortControl* portControl, float vol, float bal) { argument
648 volumeLeft = vol;
649 volumeRight = vol * (bal + 1.0f);
651 volumeLeft = vol * (1.0f - bal);
652 volumeRight = vol;
/openjdk7/jdk/src/windows/native/com/sun/media/sound/
H A DPLATFORM_API_WinOS_Ports.c1064 UINT vol = controlID->unsignedValue[0].dwValue; local
1065 if (controlID->unsignedValue[1].dwValue > vol) {
1066 vol = controlID->unsignedValue[1].dwValue;
1068 return (((float) (vol - controlID->min)) / (controlID->max - controlID->min));
1075 void setFakeVolume(PortControlID* controlID, float vol, float bal) { argument
1076 vol = vol * (controlID->max - controlID->min);
1078 controlID->unsignedValue[0].dwValue = (UINT) (vol + 0.5f) + controlID->min;
1079 controlID->unsignedValue[1].dwValue = (UINT) ((vol * (bal + 1.0f)) + 0.5f) + controlID->min;
1081 controlID->unsignedValue[1].dwValue = (UINT) (vol
[all...]

Completed in 38 milliseconds