Skip to content

Commit 05d0c87

Browse files
committed
Set volume back to 1.0 when reusing audio sources
1 parent 6ba0dac commit 05d0c87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NitroSharp/Media/AudioContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public PooledAudioSource RentAudioSource()
4747
AudioSource audioSource = _freeSources.TryDequeue(out AudioSource? pooled)
4848
? pooled
4949
: Device.CreateAudioSource();
50+
audioSource.Volume = 1.0f;
5051
return new PooledAudioSource(this, audioSource);
5152
}
5253

0 commit comments

Comments
 (0)