(a00338777) v0.9.2.1
This commit is contained in:
@@ -32,6 +32,11 @@ namespace Barotrauma.Sounds
|
||||
video = vid;
|
||||
}
|
||||
|
||||
public override float GetAmplitudeAtPlaybackPos(int playbackPos)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override bool IsPlaying()
|
||||
{
|
||||
bool retVal = false;
|
||||
@@ -65,8 +70,15 @@ namespace Barotrauma.Sounds
|
||||
SoundChannel chn = null;
|
||||
lock (mutex)
|
||||
{
|
||||
if (soundChannel != null) soundChannel.Dispose();
|
||||
chn = new SoundChannel(this, gain, null, 1.0f, 3.0f, "video", false);
|
||||
if (soundChannel != null)
|
||||
{
|
||||
soundChannel.Dispose();
|
||||
soundChannel = null;
|
||||
}
|
||||
}
|
||||
chn = new SoundChannel(this, gain, null, 1.0f, 3.0f, "video", false);
|
||||
lock (mutex)
|
||||
{
|
||||
soundChannel = chn;
|
||||
}
|
||||
return chn;
|
||||
|
||||
Reference in New Issue
Block a user