コード例 #1
0
 protected virtual void Dispose(bool isDisposing)
 {
     if (!alreadyDisposed)
     {
         if (bassService != null)
         {
             //bassService.Dispose();
             bassService = null;
         }
         if (fftService != null)
         {
             fftService.Dispose();
             fftService = null;
         }
     }
 }
コード例 #2
0
 public AudioEngine()
 {
     alreadyDisposed  = false;
     this.bassService = new BassService();
     if (IntPtr.Size == 4)
     {
         // 32 bits
         //fftService = new CachedFFTWService(new FFTWService86());
         fftService = new FFTWService86();
     }
     else
     {
         // 64bits
         //fftService = new CachedFFTWService(new FFTWService64());
         fftService = new FFTWService64();
     }
     this.audioNormalizer = new AudioNormalizer();
 }