mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-09-26 03:18:58 +02:00
MonoGamePlatform Windows specific volume fix
This commit is contained in:
parent
347d3ef72e
commit
4141a0a63a
@ -467,7 +467,15 @@
|
||||
End Function
|
||||
|
||||
Public Shared Sub ForceVolumeUpdate()
|
||||
#If WINDOWS Then
|
||||
Try
|
||||
MediaPlayer.Volume = Volume * MasterVolume
|
||||
Catch ex As NullReferenceException
|
||||
' song changed while changing volume
|
||||
End Try
|
||||
#Else
|
||||
MediaPlayer.Volume = Volume * MasterVolume
|
||||
#End If
|
||||
LastVolume = Volume * MasterVolume
|
||||
End Sub
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user