Launcher error messageboxes, more easily controllable & better looking swimming, oxygen tank bugfixes, loading screen coroutine bugfix

This commit is contained in:
Regalis
2015-10-03 17:19:14 +03:00
parent a285b00eb9
commit 46e862216b
29 changed files with 184 additions and 149 deletions
@@ -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;
}
+4 -2
View File
@@ -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();
}
-1
View File
@@ -218,7 +218,6 @@ namespace Subsurface.Sounds
if (AL.GetSourceState(alSources[sourceIndex]) != ALSourceState.Paused)
return;
Debug.WriteLine("sourceplay");
AL.SourcePlay(alSources[sourceIndex]);
ALHelper.Check();
}