0
0

Hi,

I’m just thinking about a new software idea. In order to realize it, I must change the playback speed during playback.

For example (playback of mp3 file with 2 min durations):
100% speed: 0min – 0min 30s
110% speed: 0min 30s – 1 min 30s
95% speed: 1 min 30s – 2 min

Of course there should be no pauses at the junctions.

The time information above refer to the original time information. The second part with 110% speed would be played in less than 60 seconds.

My question: Can I do this with FMod Ex? If yes, it would be nive if I had some more details about the implementation so that I can look up the functions I would need for this.

Thank you! 😉

fmod_steven

  • You must to post comments
0
0

Channel::getFrequency
Channel::setFrequency
Channel::getPosition

These are the function you’ll need

pseudocode:
channel = create a channel, paused
StartFreq = channel.getFrequency()
unpause channel

if(channel.getPosition(in ms) > 30000) channel.setFrequency(StartFreq * 1.1)
if(channel.getPosition(in ms) > 90000) channel.setFrequency(StartFreq * .95)

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.