Пример #1
0
 public void Dispose()
 {
     soundBuffer.Reserved -= HandleSoundBufferReserved;
     soundBuffer.Recycled -= HandleSoundBufferRecycled;
     soundBuffer.Dispose();
     soundBuffer = null;
     isDisposed  = true;
 }
Пример #2
0
 private void PlatformDispose(bool disposing)
 {
     if (SoundBuffer != null)
     {
         SoundBuffer.Dispose();
         SoundBuffer = null;
     }
 }
Пример #3
0
 public void Dispose()
 {
     if (!isDisposed)
     {
         this.Stop(true);
         soundBuffer.Reserved -= HandleSoundBufferReserved;
         soundBuffer.Recycled -= HandleSoundBufferRecycled;
         soundBuffer.Dispose();
         soundBuffer = null;
         isDisposed  = true;
     }
 }
Пример #4
0
 private void PlatformDispose(bool disposing)
 {
     if (disposing)
     {
         if (soundBuffer != null)
         {
             this.Stop(true);
             soundBuffer.Reserved -= HandleSoundBufferReserved;
             soundBuffer.Recycled -= HandleSoundBufferRecycled;
             soundBuffer.Dispose();
             soundBuffer = null;
         }
     }
 }