Decklink Audio Sink block
SDK contains a Decklink Audio Sink block, which allows audio output to Blackmagic Decklink devices.
You can use SDI, HDMI, and other outputs.
Enumerating devices
To enumerate available audio output devices, use the following code:
var devices = await DecklinkAudioSinkBlock.GetDevicesAsync();
foreach (var item in devices)
{
Debug.WriteLine(item.Name);
}
Creating a block
To create a block, use the following code:
DecklinkAudioSinkSettings audioSinkSettings = null;
var device = (await DecklinkAudioSinkBlock.GetDevicesAsync())[0];
if (device != null)
{
audioSinkSettings = new DecklinkAudioSinkSettings(device);
}
var decklinkAudioSink = new DecklinkAudioSinkBlock(audioSinkSettings);
The block is created with the specified settings. You can connect the Decklink Audio Sink block to other blocks, such as audio effects or sources, using the Input
pad.