-
Dx8 Music
I would like to know how can we "download" segment of mp3 or others files type in DirectMusic.
For the wav, mid and rmi (the supported ones) it's fearly easy to use cause all the functions are included in Dx8.
But has you know wav files are very big and mp3 files... tend to be smaller :) It's the reason why I want to use them.
Any idea?
Thks
-
Some guys used to decompress their MP3s into WAV when loading the game... But there should also be better ways to do that - I wouldn't know any ATM though..
-
Search for a "LAME ActiveX control", it's an MP3 encoder that can be used with VB. Not sure if it has a decoder as well, if it does you can decompress mp3s into wavs with that. Though if you do that I suggest streaming.
-
You could also have the MP3 in the package that people download, and have the Setup program decode them into WAV when the game is installed :)
-
Mp3
In the worst case I would have done what you told me, I didn't want to do that because wav is too big :/ (50 megs or more per sound I wish to use)
I wasn't able to load mp3 in DirectX 8 :(
but I was able to achive a decent result using the Active Movie Control, with it you can load any type of mpeg files.
-
There was a thread on that a while ago, and we came to the conclusion that that was the best way :)
-
Frodo, the C64 emulator does the same thing as Zsnes. It uses DirectX to emulate the sound by filling a buffer and it's open source, written in Visual C++, so maybe you could have a look at it instead.
-
Just create a function to extract the data into from an MP3 into a sound buffer! It'd be easy, I've played an MP3 with sndPlaySound (not very well mind you, but it worked) with a home-made function. You can get specs for the MP3 file format (as well as ID3v1 and v2) at http://www.wotsit.org/
-
:)))
Thanks for the link :) It will be very interesting!!!! :)
For the C64 Emulator I'll also look how he does but I never code DirectX in C :/
-
Hey Sastraxi, can you e-mail me that mp3-player? :)
Btw, why do you say "not very well"? Does it have some bugs, or does not reproduce quite what's in the mp3 file? :p