I want to know the logic on which the mp3 file can be converted to wave file(i.e the decoding logic used)
Without using any codec can we simply convert the mp3 samples to wave samples??
I can extract the samples from mp3 file by using snapshot of following code that I have provided.But I dont know the logic to decode these samples to wave samples.
THIS IS ONLY A SMALL PORTION OF MY CODE ONLY FOR EXTRACTING THE ID3V1 TAG DATA
imports system.io
Dim mp As FileStream
Dim Title(30) As Byte
Dim Artist(30) As Byte
Dim Album(30) As Byte
Dim Year(4) As Byte
Dim Comments(30) As Byte
mp = New FileStream("File_name.mp3", FileMode.Open)
mp.Seek(-125, SeekOrigin.End)
mp.Read(Title, 0, 30)
mp.Seek(-95, SeekOrigin.End)
mp.Read(Artist, 0, 30)
mp.Seek(-65, SeekOrigin.End)
mp.Read(Album, 0, 30)
mp.Seek(-35, SeekOrigin.End)
mp.Read(Year, 0, 4)
mp.Seek(-31, SeekOrigin.End)
mp.Read(Comments, 0, 30)
Dim TxtTitle As String = System.Text.Encoding.ASCII.GetString(Title)
Dim TxtArtist As String = System.Text.Encoding.ASCII.GetString(Artist)
Dim TxtAlbum As String = System.Text.Encoding.ASCII.GetString(Album)
Dim TextComments As String = System.Text.Encoding.ASCII.GetString(Comments)