Posts: 357
Threads: 118
Joined: Oct 2004
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.
Posts: 235
Threads: 30
Joined: Jun 2002
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
Posts: 357
Threads: 118
Joined: Oct 2004
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.
Posts: 140
Threads: 13
Joined: Apr 2005
FMOD is only free for private usage
PortAudio is open source (Windows, Linux, MAC)
http://www.portaudio.com/
Joshy
sorry about my english
Posts: 357
Threads: 118
Joined: Oct 2004
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.
Posts: 235
Threads: 30
Joined: Jun 2002
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
Posts: 357
Threads: 118
Joined: Oct 2004
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.
Posts: 1,774
Threads: 62
Joined: Aug 2003
Quote:FMOD is only free for private usage
PortAudio is open source (Windows, Linux, MAC)
http://www.portaudio.com/
Joshy
Have those headers been translated to FB?
Posts: 6,419
Threads: 74
Joined: Mar 2002
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.