fmod commands

General FreeBASIC programming questions.
Post Reply
toneboy
Posts: 95
Joined: May 04, 2008 4:51
Location: Australia
Contact:

fmod commands

Post by toneboy »

Firstly I'd like to acknowledge Lachie Dazdarian's tutorial on fmod, personally it helped me learn about 'volume'.
It's:
--------------------------------------------------------------------------------

http://lachie.phatcode.net/Downloads/Us ... torial.zip

But my question is; is there a list of fmod commands, like reserve words? I cant find one, the reason i ask is because i realise that in some things with fmod you can do things like FMOD_LOOP_NORMAL (that is probably not exactly correct) to loop a song, and MEPGACCURATE or something to play a song once but i want to play a song once then play a next one, so is there a way to tell if a song has finished? (I use a populated list of mp3s in a directory)
Hexadecimal Dude!
Posts: 360
Joined: Jun 07, 2005 20:59
Location: england, somewhere around the middle
Contact:

Post by Hexadecimal Dude! »

Is this what you're after?
http://www.fmod.org/docs/
maddogg6
Posts: 824
Joined: Dec 07, 2005 22:58
Contact:

Post by maddogg6 »

have a look at 'FSOUND_IsPlaying'
toneboy
Posts: 95
Joined: May 04, 2008 4:51
Location: Australia
Contact:

maybe

Post by toneboy »

Hexadecimal Dude! wrote:Is this what you're after?
http://www.fmod.org/docs/

I'm not sure, that does look really helpful, i didnt look at everything but i couldnt find it there yet, when i posted my question i was on another pc and couldnt see my code or remember exactly what it was but the line inparticular i'm using is:

stream = FSOUND_Stream_Open( mp3table(currsong), FSOUND_loop_NORMAL, 0, 0 )

Where 'FSOUND_LOOP_NORMAL' is, is where i think it should be put, to go to the next song.

Thanks
Umm I'm not sure what 'FSOND_IsPlaying' does?
maddogg6
Posts: 824
Joined: Dec 07, 2005 22:58
Contact:

Re: maybe

Post by maddogg6 »

toneboy wrote:Umm I'm not sure what 'FSOND_IsPlaying' does?
Returns if the channel is currently playing or not.
And was an answer to:
so is there a way to tell if a song has finished?
:)

But if your using FMUSIC... look at:
FMUSIC_IsFinished
Returns whether the song has completed playing, or when the last order has finished playing.
This stays set even if the song loops.
toneboy
Posts: 95
Joined: May 04, 2008 4:51
Location: Australia
Contact:

oh cool

Post by toneboy »

Oh awesome, i found an example of it on the net and yeah i got it (FSOUND_IsPlaying(int channel)) working, that FMOD website that Hexadecimal Dude posted is helpfull too.


thanks everybody
Post Reply