Fix Sound memory leak (OutOfMemoryException), remove Music caching to free memory

This commit is contained in:
rob-v
2017-06-05 19:36:48 +02:00
committed by atlimit8
parent 2def72a078
commit 8276b17570
3 changed files with 70 additions and 8 deletions

View File

@@ -25,6 +25,8 @@ namespace OpenRA
void StopAllSounds();
void SetListenerPosition(WPos position);
void SetSoundVolume(float volume, ISound music, ISound video);
void ReleaseSourcePool();
void ReleaseSound(ISound sound);
}
public class SoundDevice
@@ -39,7 +41,7 @@ namespace OpenRA
}
}
public interface ISoundSource { }
public interface ISoundSource : IDisposable { }
public interface ISound
{