0
0

I spent hours on searching and trying but I cannot get it work. Or maybe I am doing wrong search. However, this must be noob question and I will appreciate if someone can help.

I am doing an interface in VB6 for saved MP3 radio shows. There I had list of MP3’s and index of time for each. I make it play using fmodex, but I cannot make it jump to time in MP3.

For example, when I double click listbox item

00:00:01

I want it jump to 0 minutes 1 second from start of MP3 (or any other give time as parameter – long, this is just sample).

Command I use is:

result = FMOD_Channel_SetPosition(FMOD_CHANNEL_FREE, 1000, FMOD_TIMEUNIT_MS)

but obviously it is wrong or I am doing something wrong.

To summarize: MP3 is playing and I want to jump to certain time in MP3. What command I should use?

  • You must to post comments
0
0

You have to pass the handle of the playing channel to the command, not FMOD_CHANNEL_FREE. The only place that should be used is in System::playSound or System::playDSP

  • You must to post comments
0
0

[quote="brett":2tuq6a0y]You have to pass the handle of the playing channel to the command, not FMOD_CHANNEL_FREE. The only place that should be used is in System::playSound or System::playDSP[/quote:2tuq6a0y]

Hah, now I see that was really, well, that kind of question. This works in my case:

result = FMOD_Channel_SetPosition(channel, 1000, FMOD_TIMEUNIT_MS)

Thanks!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.