Decklink Audio Source block
SDK contains a Decklink Audio Source block, which allows the capture of audio from Blackmagic Decklink devices.
You can use SDI, HDMI, or other supported inputs. The block supports all audio modes supported by the device.
Enumerating devices
To enumerate available audio sources, use the following code:
var devices = await DecklinkAudioSourceBlock.GetDevicesAsync();
foreach (var item in devices)
{
Debug.WriteLine(item.Name);
}
Creating a block
To create a block, use the following code:
// audio source
DecklinkAudioSourceSettings audioSourceSettings = null;
// select the first device
var device = (await DecklinkAudioSourceBlock.GetDevicesAsync())[0];
if (device != null)
{
// create settings object
audioSourceSettings = new DecklinkAudioSourceSettings(device);
}
// create the block
var audioSource = new DecklinkAudioSourceBlock(audioSourceSettings);
Using the Output
pad, you can connect the Decklink Audio Source block to other blocks, such as audio effects, encoders, or renderers. The audio is uncompressed.