public void Dispose() { foreach (var sound in _sounds) { sound.Value.Stream.Stop(); sound.Value.Stream.Dispose(); } _context.Dispose(); _streamer.Dispose(); }
public void Dispose() { if (_oggStreamer != null) { _oggStreamer.Dispose(); _oggStreamer = null; } if (_context != null) { _context.Dispose(); _context = null; } }
public void Shutdown() { if (streamer == null) { return; } if (_noAudio == true) { return; } //oggStream.Dispose(); streamer.Dispose(); }