Página 1 de 1

how to get volume of system ?

Publicado: 12 Dic 2011 08:25
por dangngocnguyenit
:sorry: hello all...
help me. i want get value of volume , but i need volume of system not audio ams...
thank you very much.... :yes:

Re: how to get volume of system ?

Publicado: 12 Dic 2011 10:21
por rafaxplayer
I found this dll there, these are functions that take, do not say that I tested and gives results.

Functions:

Código: Seleccionar todo

--[[  *********** Function Listing ***************
SetMasterVol
GetMasterVol
SetMasterMuteOn
SetMasterMuteOff
IsMasterMuteOn

SetWaveVol
GetWaveVol
SetWaveMuteOn
SetWaveMuteOff
IsWaveMuteOn

SetMicMuteOn
SetMicMuteOff
SetMicVol
GetMicVol
IsMicMuteOn

SetLineVol
GetLineVol
SetLineMuteOn
SetLineMuteOff
IsLineMuteOn

SetCDVol
GetCDVol
SetCDMuteOn
SetCDMuteOff
IsCDMuteOn
*******************************************]]--

-- Get the Master Volume Level (1-100)
mvol = DLL.CallFunction("AutoPlay\\DLL\\fcSound.dll", "GetMasterVol", "", DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);

-- Set the Master Volume Level (1-100)
result = DLL.CallFunction("AutoPlay\\DLL\\fcSound.DLL", "SetMasterVol", mvol, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);

-- Set Master Mute On
DLL.CallFunction("AutoPlay\\DLL\\fcSound.dll", "SetMasterMuteOn", "", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);

-- SetMaster Mute Off
DLL.CallFunction("AutoPlay\\DLL\\fcSound.dll", "SetMasterMuteOff", "", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);

--Is the Master Volume Mute On
nReturn = String.ToNumber(DLL.CallFunction("AutoPlay\\DLL\\fcSound.dll", "IsMasterMuteOn", "", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL));
if nReturn == 0 then
	-- Master Mute is Off
else
	-- Master Mute Is On
end
DLL:

HIDE: ON
Hidebb Message Hidden Description

Re: how to get volume of system ?

Publicado: 12 Dic 2011 12:19
por dangngocnguyenit
thankyou very much, i love your dll... thanks... : )<div>
</div>

Re: how to get volume of system ?

Publicado: 13 Dic 2011 01:52
por Haitham.2012
thank you i will try it

Re: how to get volume of system ?

Publicado: 13 Dic 2011 13:17
por abood1987
good rafa

Re: how to get volume of system ?

Publicado: 07 Ene 2015 10:04
por andrea
gracias

Re: how to get volume of system ?

Publicado: 20 May 2016 05:35
por gaphika
thanks it really helps

Re: how to get volume of system ?

Publicado: 10 Ago 2016 21:02
por Juan
Buen Trabajo

Re: how to get volume of system ?

Publicado: 24 Jun 2018 23:20
por ruho
thnkssssssssssssssssssssssssssssss

Re: how to get volume of system ?

Publicado: 25 Jun 2018 18:03
por mecivic
Thank you