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