![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2006
Posts: 16
|
Can we use function acmStreamConvert() to decode an mp3 file or any other kind of compressed audio format?
If it can? How to do that? Thanks a lot^_^. |
|
|
|
|
|
#2 |
|
Valued Member
Join Date: Aug 2005
Location: Seoul
Posts: 272
|
depends whether you have an mp3 codec (or whatever compressed audio format is in question) installed on your system or not.
|
|
|
|
|
|
#3 | |
|
New Member
Join Date: Mar 2006
Posts: 16
|
Quote:
I can get the driver id of the mp3 codec, but the most important is that I did not how to fill the WAVEFORMATEX struct. Which function can be called to get the information such as the sample rate? Thanks a lot^_^. |
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Sep 2005
Location: Hamburg / Germany
Posts: 597
|
why don't you just encode or convert a file (the plain old soundrecorder can do this), load the WAVEFORMATEX structure and take a look what they put into the fields?
As far as I remember (I decoded mp3's using the ACM-services) everything was pretty obvious (e.g. bitrate directly translated into nAvgBytesPerSec ect.). also - this could be helpful: http://64.233.183.104/search?q=cache...EGLAYER3&hl=it |
|
|
|
|
|
#5 | |
|
New Member
Join Date: Mar 2006
Posts: 16
|
Quote:
My mission is to decode some compressed wave format file and play it by direct sound. I does not have the original uncompressed wave file, and I want to play the compressed wave file just like direct show do. But if I use direct show, I cound not controll some 3D parameters such as position. So I had to use the ACM-services to decode such file and play it with direct sound. But since the file format is unknown, I want to know that how to choose the right driver and how to fill the WAVEFORMATEX just like direct show do? Thanks a lot^_^ I can not open the url you gave me, can you paste the code in the url to me? Or send to my email? My email box is ho19@hotmail.com. Thanks a lot^_^. |
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Sep 2005
Location: Hamburg / Germany
Posts: 597
|
Code:
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|