public void CanDecompressAnMp3()
 {
     string testFile = @"C:\Users\Public\Music\Coldplay\X&Y\01-Square One.mp3";
     using(Mp3FileReader reader = new Mp3FileReader(testFile))
     {
         var frameDecompressor = new DmoMp3FrameDecompressor(reader.Mp3WaveFormat);
         Mp3Frame frame = null;
         byte[] buffer = new byte[reader.WaveFormat.AverageBytesPerSecond];
         while ((frame = reader.ReadNextFrame()) != null)
         {
             int decompressed = frameDecompressor.DecompressFrame(frame, buffer, 0);
             Console.WriteLine("Decompressed {0} bytes to {1}", frame.FrameLength, decompressed);
         }
     }
 }
 public void CanDecompressAnMp3()
 {
     var testFile = @"C:\Users\Public\Music\Coldplay\X&Y\01-Square One.mp3";
     if (!File.Exists(testFile))
     {
         Assert.Ignore("{0} not found", testFile);
     }
     using(var reader = new Mp3FileReader(testFile))
     {
         var frameDecompressor = new DmoMp3FrameDecompressor(reader.Mp3WaveFormat);
         Mp3Frame frame = null;
         var buffer = new byte[reader.WaveFormat.AverageBytesPerSecond];
         while ((frame = reader.ReadNextFrame()) != null)
         {
             int decompressed = frameDecompressor.DecompressFrame(frame, buffer, 0);
             Debug.WriteLine(String.Format("Decompressed {0} bytes to {1}", frame.FrameLength, decompressed));
         }
     }
 }
 public void CanCreateDmoMp3FrameDecompressor()
 {
     var mp3Format = new Mp3WaveFormat(44100,2,215,32000);
     var frameDecompressor = new DmoMp3FrameDecompressor(mp3Format);
     Assert.IsNotNull(frameDecompressor);
 }
 public void CanCreateDmoMp3FrameDecompressor()
 {
     Mp3WaveFormat mp3Format = new Mp3WaveFormat(44100,2,215,32000);
     DmoMp3FrameDecompressor frameDecompressor = new DmoMp3FrameDecompressor(mp3Format);
 }