ZD Screen Recorder SDK API – ScnLib_GetAudioSourceDeviceCount()

ScnLib_GetAudioSourceDeviceCount()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) int __stdcall ScnLib_GetAudioSourceDeviceCount(BOOL bPlayback);
C# [DllImport("ScnLib.dll")] public static extern int ScnLib_GetAudioSourceDeviceCount(bool Playback);
Basic Public Declare Function ScnLib_GetAudioSourceDeviceCount Lib "ScnLib.dll" (ByVal Playback As Boolean) As Int32
Delphi function ScnLib_GetAudioSourceDeviceCount(Playback: LongBool): Integer; stdcall; external 'ScnLib.dll';
  • Description
    Obtain the count of devices within a specific audio source 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 count of devices within a specific audio source category.

  • Remarks
    Use this function to obtain the count of devices within a specific audio source category. It’s typically used for device enumeration. After obtaining the count of devices, you can loop through them using ScnLib_GetAudioSourceDeviceA/W(), starting from index 0 up to count – 1, to retrieve each device’s name and ID sequentially. To review or configure the system’s audio source devices, call ScnLib_ConfigureAudioSourceDevices().

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

Shopping Cart
  • Your cart is empty.
Scroll to Top