Help fast forward, rewind function
Blitz3D Forums/Blitz3D Programming/Help fast forward, rewind function
| ||
Does anyone know how to create a fast forward AND rewind function, using this info? |
| ||
What exactly is it? |
| ||
it is a command in decls (mcisendstring) which has a time variable, that allows for the user to fast forward & rewind a playing song. |
| ||
Your strings are "set " + alias$ + " speed 1000" ; for normal "set " + alias$ + " speed " + STR$(1000 - (slowmax% * 100) ) + "" ; for slow Where slowmax is a number from 1 to 9. |
| ||
Using the libs I sent you, you can do: Function mciMP3Seek(ID, Position$) ; position can be "start", "end", or millisecs Don't know if its working for wav and midi, but it should work ok (of course, replacing the function for mciWAVSeek and mciMIDISeek). With this you can skip to any point in the song, just get current position using mciMP3Position (or mciWAV, mciMIDI...) and add/remove how many milliseconds you want to go forward or backwards. |
| ||
thanks. ill try. i also have a question. why does midi slow stuff down? |
| ||
hmm? Never had any slowdown with midi... is this only in mciMIDI or on any player in general? (If on any player you might check your midi drivers on windows, or even your sound card drivers and the sound card itself) |
| ||
well. i think its more w/ mcimidi, b/c i ran some tests, and mp3 & wav work fine. but when its midi, it slows down the project. and now its not even playing for some reason and i reinstalled the zip u gave me, and still it didnt work. i dont know why. |