protected override void Dispose(bool disposing)
{
if (disposing) {
soundWorld.Clear();
if (MasterVoice != null) {
MasterVoice.DestroyVoice();
MasterVoice.Dispose();
MasterVoice = null;
}
if (Device != null) {
Device.StopEngine();
Device.Dispose();
Device = null;
}
_device3DDirty = true;
_speakers = Speakers.Stereo;
}
}