Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I just need to know about FMOD
#11
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.
Reply
#12
here

Code:
option explicit
option escape
'$include: 'fmod.bi'
if( FSOUND_Init( 48000, 4, 0 ) = 0 ) then
   print "Can't initialize FMOD"
   end 1
end if
dim a as integer
a = FSOUND_Sample_Load(FSOUND_FREE, "d:\sndfx\hurt.mp3", FSOUND_LOOP_OFF,0,0)
FSOUND_PlaySound(FSOUND_FREE, a)
sleep
Reply
#13
: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.
Reply
#14
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.
Reply
#15
why dont you try this after you "load" a

Code:
? FSOUND_GetErrorString( FSOUND_GetError )
Reply
#16
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.
Reply
#17
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 Tongue I've been coding in GNU C for so long.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)