AudioCompressionManagerWave2Mp3 Method (IntPtr, Byte) |
Namespace: Alvas.Audio
[Missing <returns> documentation for "M:Alvas.Audio.AudioCompressionManager.Wave2Mp3(System.IntPtr,System.Byte[])"]
string inFile = "test2.wav"; string outFile = @"test2.mp3"; WaveReader wr = new WaveReader(File.OpenRead(inFile)); IntPtr format = wr.ReadFormat(); byte[] data = wr.ReadData(); wr.Close(); byte[] dataMp3 = AudioCompressionManager.Wave2Mp3(format, data); Mp3Writer mw = new Mp3Writer(File.Create(outFile)); mw.WriteData(dataMp3); mw.Close();