Remove unused parameters.

This commit is contained in:
Matthias Mailänder
2022-03-13 12:02:52 +01:00
committed by abcdefg30
parent ea243b8558
commit 0e7ad43425
205 changed files with 451 additions and 455 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Platforms.Default
catch (InvalidOperationException e)
{
Log.Write("sound", "Failed to initialize OpenAL device. Error was {0}", e);
return new DummySoundEngine(device);
return new DummySoundEngine();
}
}

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Platforms.Default
return defaultDevices;
}
public DummySoundEngine(string deviceName) { }
public DummySoundEngine() { }
public ISoundSource AddSoundSourceFromMemory(byte[] data, int channels, int sampleBits, int sampleRate)
{

View File

@@ -363,7 +363,8 @@ namespace OpenRA.Platforms.Default
void Dispose(bool disposing)
{
StopAllSounds();
if (disposing)
StopAllSounds();
if (context != IntPtr.Zero)
{