v1.2.6.0 (Winter Update)

This commit is contained in:
Regalis11
2023-12-14 16:11:27 +02:00
parent af8cc89fce
commit b91e85559d
375 changed files with 7771 additions and 2874 deletions
@@ -444,6 +444,18 @@ namespace Barotrauma.Sounds
}
}
public long MaxStreamSeekPos
{
get
{
if (!IsStream || Sound is not OggSound oggSound)
{
return 0;
}
return oggSound.MaxStreamSamplePos;
}
}
private readonly object mutex;
public bool IsPlaying
@@ -564,7 +576,7 @@ namespace Barotrauma.Sounds
throw new Exception("Generated streamBuffer[" + i.ToString() + "] is invalid! " + debugName);
}
}
Sound.Owner.InitStreamThread();
Sound.Owner.InitUpdateChannelThread();
SetProperties();
}
}
@@ -609,6 +621,7 @@ namespace Barotrauma.Sounds
public void FadeOutAndDispose()
{
FadingOutAndDisposing = true;
Sound.Owner.InitUpdateChannelThread();
}
public void Dispose()