ZD Screen Recorder SDK API – ScnLib_GetSelectedAudioSourceDevice()

ScnLib_GetSelectedAudioSourceDevice()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) int __stdcall ScnLib_GetSelectedAudioSourceDevice(BOOL bPlayback);
C# [DllImport("ScnLib.dll")] public static extern int ScnLib_GetSelectedAudioSourceDevice(bool Playback);
Basic Public Declare Function ScnLib_GetSelectedAudioSourceDevice Lib "ScnLib.dll" (ByVal Playback As Boolean) As Int32
Delphi function ScnLib_GetSelectedAudioSourceDevice(Playback: LongBool): Integer; stdcall; external 'ScnLib.dll';
  • Description
    Check the index of the audio source device currently selected in a specific category.

  • Parameters
    • Playback [in]
      TRUE: Within the playback audio source category, which typically includes audio output devices like speakers and headphones.
      FALSE: Within the recording audio source category, which typically includes audio input devices like microphones and line-ins.
  • Return Value
    The index corresponds to the currently selected device within the specified audio source category. A negative index indicates that the system’s default device for the specified category is selected. If the index is greater than or equal to 0, it signifies that a specific device within the category has been selected.

  • Remarks
    Use this function to check the index of the audio source device currently selected in a specific category via ScnLib_SelectAudioSourceDevice(). To review or configure the system’s audio source devices, call ScnLib_ConfigureAudioSourceDevices().

  • See Also
    ScnLib_GetAudioSourceDeviceCount()
    ScnLib_GetAudioSourceDeviceA/W()
    ScnLib_SelectAudioSourceDevice()
    ScnLib_ConfigureAudioSourceDevices()

Shopping Cart
  • Your cart is empty.
Scroll to Top