I load a mp3 with [color=yellow:3uquhd3w]systemA.createSound(tema, FMOD.MODE.SOFTWARE | FMOD.MODE.CREATESTREAM | FMOD.MODE.ACCURATETIME, ref soundA);[/color:3uquhd3w] (5:00 minutes).
When I set [color=yellow:3uquhd3w]soundA.setLoopPoints (1000, FMOD.TIMEUNIT.MS, 1100, FMOD.TIMEUNIT.MS);[/color:3uquhd3w] and play, this begins from 0 until 1100 ms and loop to 1000, but channelA.getPosition displays that the time keeps advancing, however the sound is doing the loop from 1000 up to 1100…
That is it happening?
- LeoCombes asked 11 years ago
Tanks, but not work…
channelA.setLoopPoints shows the loop in getPosition, but the sound continues without loop.
soundA.setLoopPoints makes the loop work, but getPosition keeps advancing.
The only way that works correctly (time and sound) is using:
channelA.setLoopPoints and soundA.setLoopPoints (both).
Like this it is as it must be used?
I am unable to reproduce this problem you are having.
Have a look at the createStream example and add the line
[code:tfot2u69] result = sound->setLoopPoints(1000, FMOD_TIMEUNIT_MS, 1100, FMOD_TIMEUNIT_MS);
after the createSound (add FMOD_LOOP_NORMAL if it isn’t already there).
This works without any problems.
Please login first to submit.