Skip to content

AudioDeviceRendering

property

Delphi
property AudioDeviceRendering: Boolean read GetAudioDeviceRendering write SetAudioDeviceRendering  default DEF_AudioDeviceRendering;
C++Builder
__property bool AudioDeviceRendering = {read=GetAudioDeviceRendering, write=SetAudioDeviceRendering, default=0};
C#
public bool AudioDeviceRendering { get; set; }
VB.NET
Public Property AudioDeviceRendering As Boolean
C++/Qt
BOOL GetAudioDeviceRendering ();
void SetAudioDeviceRendering (BOOL Value);

Enables or disables the rendering of the audio stream of the current source during preview or recording: audio output of the video capture device, audio stream of the IP camera, video file or URL, or the current AudioDevice audio capture device, depending on AudioSource. The audio is rendered on the AudioRenderer audio renderer.

When disabled (default), no audio is rendered during preview or recording, whatever the source. To render the audio of a clip opened by OpenPlayer, use PlayerAudioRendering instead.

This property is applied when the preview or recording starts. Changing it while the preview is running restarts the preview if AutoRefreshPreview is enabled (except for an IP camera opened asynchronously); otherwise the change applies at the next start.

To switch the audio on and off while the preview or recording is running, start with AudioDeviceRendering enabled, then enable or disable MuteAudioRendering. To start without audio and switch it on later, start with both AudioDeviceRendering and MuteAudioRendering enabled, then disable MuteAudioRendering.