Converting mp3 data to wav data C# -
In my project I'm getting MP3 data in a byte array. I want to convert that data into wav format and store it in another byte array. I have searched the Internet for the Wii Converter for MP3, but all of them have to support the file to file the conversion. None of them is taking raw data as input, is there any way that I can get in C #? The function is a prototype that I am attempting to create.
bool converttoowav (byte [] buffer) {// store the data in some processing and buffer buffer 2. Blockcopy (buffer2,0, buffer, 0, buffer.length -1); }
This is a long reaction, but I understand it myself NuGet Pad is called NAudio, it offers great functionality for what you want to do.
using NAudio.Wave; Private WaveFileWriter.CreateWaveFile (_outPath_, pcm);) using Private Static Zero ConvertMonspov (String_Enpath_, string_outPath_) {(MP3 Fillder MP3 = New MP3 Fill Reader (_inPath_)) {WaveStream pcm = WaveFormatConversionStream.CreatePcmStream ( Mp3))}}} there you go.
Comments
Post a Comment