Skip to content

Commit a92237c

Browse files
Ensure we check for null of both sound sources before updating their position.
1 parent e88d9ca commit a92237c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ else
132132
while (!disposed)
133133
{
134134
await Task.Delay(50);
135-
if (speakerLight is null || context is null) continue;
135+
if (speakerLight is null || speakerDark is null || context is null) continue;
136136

137137
await UpdatePannerPositionAndOrientation(pannerLight, speakerLight);
138138
await UpdatePannerPositionAndOrientation(pannerDark, speakerDark);

0 commit comments

Comments
 (0)