ZD Screen Recorder SDK API – ScnLib_SetAudioPath()

ScnLib_SetAudioPathA/W()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetAudioPathA(LPCSTR pcszPath);
__declspec(dllimport) void __stdcall ScnLib_SetAudioPathW(LPCWSTR pcwszPath);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern void ScnLib_SetAudioPathW(string Path);
Basic Public Declare Unicode Sub ScnLib_SetAudioPathW Lib "ScnLib.dll" (ByVal Path As String)
Delphi procedure ScnLib_SetAudioPathA(const Path: PAnsiChar); stdcall; external 'ScnLib.dll';
procedure ScnLib_SetAudioPathW(const Path: PWideChar); stdcall; external 'ScnLib.dll';
  • Description
    Set the audio output file path.

  • Parameters
    • Path [in]
      The audio output file path. The audio format supported by the SDK: .MP3 and .WAV. The file path may include any combination of following predefined variables:
      • <num> – Incorporate an automatically incrementing number into the file name to ensure its uniqueness.
      • <date> – Include a string representing the current date in the file name.
      • <time> – Include a string representing the current time in the file name.
      e.g. ‘C:\<date>\Rec <time>.mp3’
  • Return Value
    None.

  • Remarks
    Use this function to set the audio output file path, which can include any combination of the predefined variables mentioned above. If you prefer not to use these variables, you can create a unique file path independently. Setting a path to an already existing file will result in the file being overwritten. The file extension determines the output audio format supported by the SDK: .MP3 and .WAV. The .MP3 format employs Lame MP3 encoding, whereas the .WAV format encapsulates raw, uncompressed PCM (Pulse-Code Modulation) data.

    Initially, the SDK configures the audio output file path to be empty, indicating that no separate audio output file will be created. Changing the audio output file path during the recording process is not permitted. To retrieve the current or last saved audio output file path, call ScnLib_GetAudioPathA/W().

  • See Also
    ScnLib_GetAudioPathA/W()

Shopping Cart
  • Your cart is empty.
Scroll to Top