ScnLib_SetAudioSourceVolume()

ScnLib_SetAudioSourceVolume()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetAudioSourceVolume(BOOL bPlayback, int nVolume);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_SetAudioSourceVolume(bool Playback, int Volume);
Basic Public Declare Sub ScnLib_SetAudioSourceVolume Lib "ScnLib.dll" (ByVal Playback As Boolean, ByVal Volume As Int32)
Delphi procedure ScnLib_SetAudioSourceVolume(Playback: LongBool; Volume: Integer); stdcall; external 'ScnLib.dll';
  • Description
    Adjust the volume of an 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.
    • Volume [in]
      The audio source volume, adjustable within a range from 0 to 100, where 100 represents normal volume and 0 indicates mute.
  • Return Value
    None.

  • Remarks
    Use this function to adjust the volume of an audio source. This alteration won't impact the actual volume of the audio source device, as it is applied during the post-processing of the captured audio data. You are permitted to modify the audio source volume even during the recording process. The default volume setting is 100. To check the current volume of an audio source, call ScnLib_GetAudioSourceVolume().

  • See Also
    ScnLib_SelectAudioSourceDevice()
    ScnLib_GetAudioSourceVolume()

Try the SDK for FREE SDK APIs overview