Posts: 357
Threads: 118
Joined: Oct 2004
Opa Opa streams mp3, I want them to be entirey loaded and be able to lay them back
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Posts: 357
Threads: 118
Joined: Oct 2004
:evil: a continues to return 0, ie. The Load failed, I checked the name of the file, it's correct, I messed with the MODE and nothing. So I have a new question: How much slower is opening/streaming MP3 compared to just playing them from memory. I would think it is a decent slowdown because it has to read from a disk. Should I look for a different mp3 player?
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Posts: 719
Threads: 42
Joined: Oct 2005
The first thing you should do is not use MP3 at all. Use OGG instead...the files are usually smaller, the quality higher, and it's an open format instead of the restrictive license mp3 has.
\__/)
(='.'=) Copy bunny into your signature to
(")_(") help him gain world domination.
Posts: 357
Threads: 118
Joined: Oct 2004
I actually figured out what was wrong. FMOD apperently has a glitch in it, it doesn't support directories other than the one that the program is in. I was using d:\sndfx\hurt.mp3 from d:\freebasic\examples\ so I ended up with a blank file called d:\freebasic\examples\sndfxhurt.mp3. I 'm not sure what happened, was FMOD written in Solaris? Maybe i need to use d:/sndfx/ or d:\\sndfx\\. I've decided to use Open AL though, I have to convert all my mp3s back to wavs, but that shouldn't take too long. Unless I can figureout why now trying to change the channel volume or panning value is failing.
I'll use FMOD for longer streaming mp3s and midi playback since OpenAL doesn't support either one.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Posts: 6,419
Threads: 74
Joined: Mar 2002
FMOD allows files wherever. Check OpaOpa, I use a subdirectory for ogg files.
I tend to use "/" instead of "\" as some kind of proffessional deformation
I've been coding in GNU C for so long.