Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I just need to know about FMOD
#1
Does it support playing more than one sound at the same time? If so, howdo I do that, do I just tell them to play and it will mix them automatically? It will usually be one midi file and multiple mp3 sounds. I looked in the examples and studied the fmod.bi code, i couldn't find an answer. I don't want to use OpenAL

EDIT: I will also need it to be able to play them at different volumes
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
#2
one of the best tutes available for fmod use in fb: http://www.freebasic.net/forum/viewtopic.php?t=11

yes you can do multiple sounds at once, read the tute, he'll talk about "FSOUND_Free", which will automaically play the sample in a free channel. you also have control over volumes, but this is something you'll want to look at the fmod docs for (or just the .bi if youre very adventurous and smart ;p)
Reply
#3
Yes FMOD can do those things, and if you need more commands than what is given in the tutorial get the chm at http://www.cdsoft.co.uk/fbstuff/fmod.chm which is also stated in the tutorial =D

If you need anymore help, I have been working with FMOD for a project of my own so I am getting pretty familiar with it.
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law
Reply
#4
Thanks
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
#5
FMOD is only free for private usage Sad
PortAudio is open source (Windows, Linux, MAC)
http://www.portaudio.com/

Joshy
sorry about my english
Reply
#6
Ok, every tutorial that I have looked at tels me that I will want to use a streaming mp3 because they are often very large. It never says that is MUST be used as a stream, but none of themoffer the alternative of loadingan entire MP3. How do I do this? All of my files are simpy sound effects, no more than a second in length, size is no concern.
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
#7
if you want to load all of your sound into memory (not streaming) then use
Code:
FSOUND_Sample_Load(indexnumber, soundfile$,offset, length)
offset and length are optional and normally set to 0

then to play it would be

Code:
FSOUND_PlaySound(indexnumber)
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law
Reply
#8
I've been playing with it for a while and still don't have something that works. Could somebody post an example here?

This is what I've been trying to put together:
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_FREE
FSOUND_Sample_Load(a, "d:\sndfx\hurt.mp3", FSOUND_LOOP_OFF,0,0)
FSOUND_PlaySound(FSOUND_FREE, a)
sleep
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
#9
Quote:FMOD is only free for private usage Sad
PortAudio is open source (Windows, Linux, MAC)
http://www.portaudio.com/

Joshy

Have those headers been translated to FB?
Reply
#10
Download Opa Opa ( http://www.apeshell.net ) and peek at the source. It has an ubersimple dumb OGG player using FMOD. It should get you started.
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)