audio conversion
-
hi all i want to convert one audio format to another. for this i will have to get hold of digital o/p of audio data and than apply compression algorithms according to specification of various file formats. i wanted to ask how to get hold of that uncompressed digital data?
-
hi all i want to convert one audio format to another. for this i will have to get hold of digital o/p of audio data and than apply compression algorithms according to specification of various file formats. i wanted to ask how to get hold of that uncompressed digital data?
puneet_cha wrote:
i wanted to ask how to get hold of that uncompressed digital data?
Wouldn't you get that by uncompressing the source data?
"If you can dodge a wrench, you can dodge a ball."
-
hi all i want to convert one audio format to another. for this i will have to get hold of digital o/p of audio data and than apply compression algorithms according to specification of various file formats. i wanted to ask how to get hold of that uncompressed digital data?
-
From which format to which format?
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir? **Dr.Brad :**Well,I just replied to everything Graus did and then argued with Negus for a bit.
i have to mainly consider 2 formats MP3 and WAVE. but main issue is that how to get the digital data given by A/D converter. can somebody help me in this
-
i have to mainly consider 2 formats MP3 and WAVE. but main issue is that how to get the digital data given by A/D converter. can somebody help me in this
Do you want raw PCM data? From what source?
"If you can dodge a wrench, you can dodge a ball."
-
Do you want raw PCM data? From what source?
"If you can dodge a wrench, you can dodge a ball."
YA I WANT A RAW PCM DATA. THE OUTPUT OF ANALOG TO DIGITAL CONVERTER
-
YA I WANT A RAW PCM DATA. THE OUTPUT OF ANALOG TO DIGITAL CONVERTER
That will depend on the device then. If it's a device that includes a driver of some kind to access the data then you can get it there. Otherwise you need to write a driver to access the hardware. If the device is a sound card, you can use DirectX or the Windows Multimedia APIs.
"If you can dodge a wrench, you can dodge a ball."
-
That will depend on the device then. If it's a device that includes a driver of some kind to access the data then you can get it there. Otherwise you need to write a driver to access the hardware. If the device is a sound card, you can use DirectX or the Windows Multimedia APIs.
"If you can dodge a wrench, you can dodge a ball."
will direct show API solve my purpose?
-
will direct show API solve my purpose?
You haven't yet indicated the source of the audio so I have no idea what your purpose is! :) If you need PCM data from a sound card then DirectX (DirectSound) is a solution. Windows multimedia audio is another soution.
"If you can dodge a wrench, you can dodge a ball."
-
You haven't yet indicated the source of the audio so I have no idea what your purpose is! :) If you need PCM data from a sound card then DirectX (DirectSound) is a solution. Windows multimedia audio is another soution.
"If you can dodge a wrench, you can dodge a ball."
hi mark my work is to convert MP3 file to WAv and vice versa. so to do that i need raw PCM data,on which i can perform operations for the above purpose. so i wanted to know how can i get that raw PCM data.
-
hi mark my work is to convert MP3 file to WAv and vice versa. so to do that i need raw PCM data,on which i can perform operations for the above purpose. so i wanted to know how can i get that raw PCM data.
That's what I thought from your first post, which is why I first replied that way. DirectX is for accessing devices so it's not really applicable for file conversion. Generally, you read audio data, transform the data to a new format, and write the resulting data. To convert MP3 to WAV you'd read from the MP3 file, decompress the audio samples to PCM, and write them to the a WAV file. To convert WAV to MP3 you'd read from the WAV file, compress the audio samples to using MP3 compression, and write the resulting compressed data to the a MP3 file. You can learn the MP3 format and compression algorithm and write your own codec. You'd also need to understand the format of the files (MP3 and WAV). If you don't want to write your own transformation code then the Audio Compression Manager[^] included with Windows can help do it for you. You need to supply an MP3 encoder (Windows doesn't include one) but there is a free one called LAME[^] that's popular.
"If you can dodge a wrench, you can dodge a ball."
-
That's what I thought from your first post, which is why I first replied that way. DirectX is for accessing devices so it's not really applicable for file conversion. Generally, you read audio data, transform the data to a new format, and write the resulting data. To convert MP3 to WAV you'd read from the MP3 file, decompress the audio samples to PCM, and write them to the a WAV file. To convert WAV to MP3 you'd read from the WAV file, compress the audio samples to using MP3 compression, and write the resulting compressed data to the a MP3 file. You can learn the MP3 format and compression algorithm and write your own codec. You'd also need to understand the format of the files (MP3 and WAV). If you don't want to write your own transformation code then the Audio Compression Manager[^] included with Windows can help do it for you. You need to supply an MP3 encoder (Windows doesn't include one) but there is a free one called LAME[^] that's popular.
"If you can dodge a wrench, you can dodge a ball."
hi mark u wrote "To convert MP3 to WAV you'd read from the MP3 file, decompress the audio samples to PCM, and write them to the a WAV file." I wanted to know:- HOW CAN I DECOMPRESS THE AUDIO SAMPLES TO PCM?is there any API for this?
-
hi mark u wrote "To convert MP3 to WAV you'd read from the MP3 file, decompress the audio samples to PCM, and write them to the a WAV file." I wanted to know:- HOW CAN I DECOMPRESS THE AUDIO SAMPLES TO PCM?is there any API for this?
The same APIs can do it but you still need an MP3 codec (the "dec"oder part of "codec") or you'd need to write your own. The APIs are available with the OS but the codec is not due to MPEG-3 licensing restrictions. Mark
"If you can dodge a wrench, you can dodge a ball."