Skip to content

Commit

Permalink
Default keyboard to 0.1f gain.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Jun 3, 2024
1 parent cb8d62a commit 63af34d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
if (context is null || mainNode is null || compressor is null)
{
context = await AudioContext.CreateAsync(JSRuntime);
mainNode = await GainNode.CreateAsync(JSRuntime, context, new() { Gain = 0.5f });
mainNode = await GainNode.CreateAsync(JSRuntime, context, new() { Gain = 0.1f });
compressor = await DynamicsCompressorNode.CreateAsync(JSRuntime, context);
await using AudioDestinationNode destination = await context.GetDestinationAsync();
await compressor.ConnectAsync(mainNode);
Expand Down

0 comments on commit 63af34d

Please sign in to comment.