예제 #1
0
 public void Dispose()
 {
     foreach (var sound in _sounds)
     {
         sound.Value.Stream.Stop();
         sound.Value.Stream.Dispose();
     }
     _context.Dispose();
     _streamer.Dispose();
 }
예제 #2
0
        public void Dispose()
        {
            if (_oggStreamer != null)
            {
                _oggStreamer.Dispose();
                _oggStreamer = null;
            }

            if (_context != null)
            {
                _context.Dispose();
                _context = null;
            }
        }
예제 #3
0
        public void Shutdown()
        {
            if (streamer == null)
            {
                return;
            }

            if (_noAudio == true)
            {
                return;
            }

            //oggStream.Dispose();
            streamer.Dispose();
        }