#
Balance
The Balance block sets the position in the stereo panorama.
Use the balance value to configure.
#
Block info
Name: AudioBalanceBlock.
#
The sample pipeline
graph LR; UniversalSourceBlock-->AudioBalanceBlock; AudioBalanceBlock-->AudioRendererBlock;
#
Sample code
var pipeline = new MediaBlocksPipeline();
var filename = "test.mp3";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));
var balance = new AudioBalanceBlock(1.0f);
pipeline.Connect(fileSource.AudioOutput, balance.Input);
var audioRenderer = new AudioRendererBlock();
pipeline.Connect(balance.Output, audioRenderer.Input);
await pipeline.StartAsync();
#
Platforms
Windows, macOS, Linux, iOS, Android.