Skip to main content

Audio rendering


The Audio Renderer block is used to play the audio stream on the selected or default device. Volume and mute options are available.

Block info

Name: AudioRendererBlock.

Pin directionMedia typePins count
Input audiouncompressed audio1

Enumerate available devices

Use AudioRendererBlock.GetDevices to get a list of available devices.

The sample pipeline

SystemAudioSourceBlock AudioRendererBlock

Sample code

var pipeline = new MediaBlocksPipeline(false);

var audioSourceBlock = new VirtualAudioSourceBlock(new VirtualAudioSourceSettings());

var audioRenderer = new AudioRendererBlock();
pipeline.Connect(audioSourceBlock.Output, audioRenderer.Input);

await pipeline.StartAsync();


Windows, macOS, Linux, iOS, Android.