mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 07:44:31 +02:00
Prevent next song playing before fade done
This commit is contained in:
parent
873411d40e
commit
b48debe4e2
@ -45,7 +45,8 @@ Public Class LoopStream
|
||||
_sourceStream.Position = 0
|
||||
Else
|
||||
If Not _sourceStream.Position = 0 Then
|
||||
If MusicManager.Playlist.Count > 1 And MusicManager._isCurrentlyFading = False Then
|
||||
If MusicManager._isCurrentlyFading = False Then
|
||||
If MusicManager.Playlist.Count > 1 Then
|
||||
MusicManager.Playlist.RemoveAt(0)
|
||||
ElseIf MusicManager.EnableLooping = False AndAlso MusicManager.Playlist.Count > 0 Then
|
||||
MusicManager.Playlist.RemoveAt(0)
|
||||
@ -83,6 +84,7 @@ Public Class LoopStream
|
||||
MusicManager._currentSongName = "silence"
|
||||
Logger.Debug($"Play song [silence]")
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
Exit While
|
||||
End If
|
||||
|
Loading…
x
Reference in New Issue
Block a user