Exemple #1
0
 public void Dispose()
 {
     if (_player != null)
     {
         _player.Dispose();
         _player = null;
     }
     if (_buffer != null)
     {
         _buffer.Dispose();
         _buffer = null;
     }
 }
Exemple #2
0
 public LibRetroXAudio(Guid audioDeviceId)
 {
     _deviceId = GetDeviceId(audioDeviceId);
     _player   = new XAudioPlayer(_deviceId);
     _buffer   = new XAudioRingBuffer(_bufferCount, _bufferSize);
 }