It’s taking about 1/3 of a second to seek to 2 minutes, 0 seconds in an .IT file. I’m using FMODEX 4.02.03 from C#.
The file was opened like this:
.createSound(soundName, FMOD.MODE.HARDWARE | FMOD.MODE.CREATESTREAM | FMOD.MODE.ACCURATETIME, ref sound.Sound);
And position set like this:
Any way to speed this up? I don’t mind if FMOD builds an index when the sound is loaded, but this far is too slow for my application.
- gosub asked 11 years ago
Hm, that doesn’t appear to be the case, unless I’m doing something wrong:
uint tt = 0;
mChannel.getPosition(ref tt, FMOD.TIMEUNIT.MS);
Pattern, row, and order, ( 28, 111, 28 ) were saved from a seek one second before time. After I run this code, tt is zero and it takes about 1/2 second to do the last command.
That’s not going to work for my application.
May I suggest adding a “getPositionMark” and “setPositionMark” (or something like that) so I can save my current position, and get back to it quickly? Then I could build an index in 10 second intervals and search quickly within that. Either that, or have a BUILD_INDEX flag?
That would work if I could set order and row, then seek forward to the exact millisecond. Unfortunately, FMOD appears to loose the time and still seeks from the beginning. How about adding a command like this:
.setPosition(order, pattern, row, timeMs)
Where I am telling FMOD what time to use for the order pattern, and row. Then I could quickly seek forward the exact time I want. Or… do you have a suggestion for something else I could try?
I really do need fast random access seeking to make my application work.
Please login first to submit.