Esempio n. 1
0
        static void Main(string[] args)
        {
            var fileName = @"C:\Users\milkitic\Downloads\HuΣeR Vs. SYUNN feat.いちか - 狂水一華.mp3";
            var obj      = new AudioDataHelper(fileName);
            var data     = obj.GetData(out var waveFormat);

            var memoryStream = new MemoryStream(data);
            var waveStream   = new RawSourceWaveStream(memoryStream, waveFormat);
            var p            = new WaveFloatTo16Provider(waveStream);

            WaveFileWriter.CreateWaveFile("a.wav", p);

            var reader = new Mp3FileReaderBase(fileName, format => new DmoMp3FrameDecompressor(format));

            WaveFileWriter.CreateWaveFile("b.wav", reader);
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a 16 bit Wave File from an ISampleProvider
 /// BEWARE: the source provider must not return data indefinitely
 /// </summary>
 /// <param name="filename">The filename to write to</param>
 /// <param name="sourceProvider">The source sample provider</param>
 // Token: 0x06000917 RID: 2327 RVA: 0x0001A320 File Offset: 0x00018520
 public static void CreateWaveFile16(string filename, ISampleProvider sourceProvider)
 {
     WaveFileWriter.CreateWaveFile(filename, new SampleToWaveProvider16(sourceProvider));
 }