How to set position when playing a MP3 with Fmod?

BlitzMax Forums/BlitzMax Programming/How to set position when playing a MP3 with Fmod?

Rico(Posted 2012) [#1]
I would normally ask this in Brucey's modules section but nothing much seems to go on there these days.

Could anyone tell me how to set the position in a MP3 do i can start playing it from a certain point? i am trying to synch an intro to some music and i keep having to start from the beginning each time and sit through all the stuff i have already synched.

I know i can get the position within a track with this command

Function bmx_FMOD_Channel_GetPosition:Int(handle:Byte Ptr, position:Int Ptr, posType:Int)

Also does anyone know where the instructions are for FMOD? i cant remember its been so long since i used it!

Thank you for any help :)


Grisu(Posted 2012) [#2]
Hi Rico!

I assume you use Fmod 4.3x.xx.

Here's a quick and dirty example code on how to play an mp3 from a certain position (in this case 8 secs from start).



Grisu