Skip to content

Commit 1c2992f

Browse files
Removed warnings in sample project.
1 parent aadd148 commit 1c2992f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

samples/KristofferStrube.Blazor.WebAudio.WasmExample/ADSREditor/ADSREditor.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
InputUpdated="(string s) => { input = s; StateHasChanged(); }"
66
InputRendered="InputHasBeenRendered"
77
DisableScaleLabel=true
8+
DisableMoveAnchorEditMode=false
89
SnapToInteger=true />
910

1011
@code {

samples/KristofferStrube.Blazor.WebAudio.WasmExample/AudioEditor/Nodes/Analyser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Analyser(IElement element, SVGEditor.SVGEditor svg) : base(element, svg)
2828

2929
public string Type
3030
{
31-
get => Element.GetAttribute("data-type");
31+
get => Element.GetAttribute("data-type")!;
3232
set
3333
{
3434
if (value is null)

samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages/AudioPlayer.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
{
107107
loadedTracks[currentTrack] = await HttpClient.GetByteArrayAsync(tracks[currentTrack]);
108108
}
109-
AudioBuffer nextAudioBuffer = await context.DecodeAudioDataAsync(loadedTracks[currentTrack]);
109+
AudioBuffer nextAudioBuffer = await context.DecodeAudioDataAsync(loadedTracks[currentTrack]!);
110110

111111
currentAudioBuffer = nextAudioBuffer;
112112
trackDuration = await currentAudioBuffer.GetDurationAsync();

0 commit comments

Comments
 (0)