Amplify
Block amplifies an audio stream by an amplification factor. Several clipping modes are available.
Use method and level values to configure.
Block info
Name: AmplifyBlock.
Pin direction | Media type | Pins count |
---|---|---|
Input | Uncompressed audio | 1 |
Output | Uncompressed audio | 1 |
The sample pipeline
Sample code
var pipeline = new MediaBlocksPipeline();
var filename = "test.mp3";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));
var amplify = new AmplifyBlock(AmplifyClippingMethod.Normal, 2.0);
pipeline.Connect(fileSource.AudioOutput, amplify.Input);
var audioRenderer = new AudioRendererBlock();
pipeline.Connect(amplify.Output, audioRenderer.Input);
await pipeline.StartAsync();
Platforms
Windows, macOS, Linux, iOS, Android.