ScnLib_GetAudioSourceVolumeLevel()

ScnLib_GetAudioSourceVolumeLevel()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) int __stdcall ScnLib_GetAudioSourceVolumeLevel(BOOL bPlayback);
C# [DllImport("ScnLib.dll")] public static extern int ScnLib_GetAudioSourceVolumeLevel(bool Playback);
Basic Public Declare Function ScnLib_GetAudioSourceVolumeLevel Lib "ScnLib.dll" (ByVal Playback As Boolean) As Int32
Delphi function ScnLib_GetAudioSourceVolumeLevel(Playback: LongBool): Integer; stdcall; external 'ScnLib.dll';
  • Description
    Obtain the real-time volume level of a specified audio source.

  • Parameters
    • Playback [in]
      TRUE: The playback audio source such as speakers and headphones.
      FALSE: The recording audio source such as microphones and line-ins.
  • Return Value
    The real-time volume level of a specified audio source, ranging from 0 to 100, where 100 represents normal volume and 0 indicates mute.

  • Remarks
    Use this function to obtain the real-time volume level of a specified audio source. When the volume level monitoring feature is turned off, the function is operational only during screen recording sessions. However, if the volume level monitoring feature is turned on, this function remains functional regardless of whether screen recording is in progress or not. To turn on the volume level monitoring feature, call ScnLib_MonitorVolumeLevel() with a TRUE parameter.

  • See Also
    ScnLib_MonitorVolumeLevel()
    ScnLib_IsMonitoringVolumeLevel()

Try the SDK for FREE SDK APIs overview