Launcher error messageboxes, more easily controllable & better looking swimming, oxygen tank bugfixes, loading screen coroutine bugfix
This commit is contained in:
@@ -273,7 +273,7 @@ namespace Subsurface
|
||||
{
|
||||
if (i == selectedSound)
|
||||
{
|
||||
Debug.WriteLine(s.sound.Play(1.0f, 2000.0f, position));
|
||||
s.sound.Play(1.0f, 2000.0f, position);
|
||||
Debug.WriteLine("playing: " + s.sound);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -234,11 +234,11 @@ namespace Subsurface
|
||||
|
||||
loadedSounds.Remove(this);
|
||||
|
||||
System.Diagnostics.Debug.WriteLine("Removing sound " + filePath + " (buffer id" + AlBufferId + ")");
|
||||
|
||||
if (alSourceId>0 && SoundManager.IsPlaying(alSourceId))
|
||||
{
|
||||
ALHelper.Check();
|
||||
SoundManager.Stop(alSourceId);
|
||||
ALHelper.Check();
|
||||
}
|
||||
|
||||
foreach (Sound s in loadedSounds)
|
||||
@@ -246,6 +246,8 @@ namespace Subsurface
|
||||
if (s.oggSound == oggSound) return;
|
||||
}
|
||||
|
||||
System.Diagnostics.Debug.WriteLine("Removing sound " + filePath + " (buffer id" + AlBufferId + ")");
|
||||
|
||||
SoundManager.ClearAlSource(AlBufferId);
|
||||
oggSound.Dispose();
|
||||
}
|
||||
|
||||
@@ -218,7 +218,6 @@ namespace Subsurface.Sounds
|
||||
if (AL.GetSourceState(alSources[sourceIndex]) != ALSourceState.Paused)
|
||||
return;
|
||||
|
||||
Debug.WriteLine("sourceplay");
|
||||
AL.SourcePlay(alSources[sourceIndex]);
|
||||
ALHelper.Check();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user