|
Post by Wayne Rayner on Dec 2, 2009 6:49:23 GMT -5
Hey people as most of you are aware of I'm in the maikng of a Music Player. So far I'm reading as much as possible about the mp3 music file and trying to figure out how to make a function that loads a mp3 music file. Then a another function that plays the music file.
I don't really want to use the freesoundplugin, but if that is what I have to do I will. The reason I don't want 2 use the freesoundplugin is because it's complicated and I don't know how to use it.
Also expect me to ask the same question about wma as well.
Thanks for help Wayne rayner
|
|
|
Post by aphoticgenesis on Dec 2, 2009 7:09:42 GMT -5
if you want to do this in C++ a good library is fmod(used by professional games such as starcraft 2!) if you use fmod you have to give a link or some kind of image saying that you did cause thats their licsence agreement, unless you buy an expensive commercail liscence
if you want to do this in basic4gl look into the doumentation that comes with basic4gl im pretty sure it gives some examples on sound
|
|
|
Post by Wayne Rayner on Dec 2, 2009 7:35:54 GMT -5
Yea the examples only has .wav format and .ogg, what I need is a .mp3 file loader and player and I'm doing this in Basic4GL. I plan on having a file that needs to be included say mp3.gb or something that has all the functions to load and play .mp3 files. I will do the same with wma i suppose unless some can tell me an easier way.
Wayne Rayner
|
|
|
Post by shadow008 on Dec 2, 2009 8:00:33 GMT -5
hmmm... recently browsing the files in my b4gl folder, i suggest you could use the decoder plugin.
apparently it loads .mp3 files:
(copy and paste)
const FILE$ = "No Limit.mp3" if DecoderLoadFile(FILE$) =TRUE then printr "number of frames :" + DecoderGetNumberOfFrames() Sleep(1000) DecoderStart(0) end if
while inkey$()="" locate 0,5 printr "curent frame = " + DecoderGetFrame() Sleep(10) wend DecoderFreeFile() end
|
|