0
0

I’ve learned how to use FMOD to a satisfactory state, but there are a few things that I don’t know, and I’m not sure if they are possible (I couldn’t find anything in the documentation or google). Here’s some of the things I would like to know:

1) Is it possible to start a sound at any given point. For example, start playing a sound at 2000 milliseconds into the sound.

2) Is is possible to find out where the song is up to, without adding my own timer over the top. Like in a media player, it says the song is already 10 seconds in.

3) Is it possible to get how much volume is being outputed from the sound. For example, when a sound is silent, the volume is low, whereas if there is a big bang, the volume increases and is loud.

4) Is it possible to slow down or speed up a sound (change the tempo)?

If these are not possible, what other libraries do allow it?

Thanks.

  • You must to post comments
0
0

[quote:1w9j2zbi]1) Is it possible to start a sound at any given point. For example, start playing a sound at 2000 milliseconds into the sound.[/quote:1w9j2zbi]
Yes, see Channel::setPosition. The best way to do this is to start the channel paused, then call setPosition then set paused as false.

[quote:1w9j2zbi]2) Is is possible to find out where the song is up to, without adding my own timer over the top. Like in a media player, it says the song is already 10 seconds in. [/quote:1w9j2zbi]
Yes, see Channel::getPosition.

[quote:1w9j2zbi]3) Is it possible to get how much volume is being outputed from the sound. For example, when a sound is silent, the volume is low, whereas if there is a big bang, the volume increases and is loud. [/quote:1w9j2zbi]
Yes, see Channel::getWaveData

[quote:1w9j2zbi]4) Is it possible to slow down or speed up a sound (change the tempo)? [/quote:1w9j2zbi]
Yes but this one is a little more complicated. You can speed things up using setPitch/setFrequency, but that will also raise the pitch of the sound. If this is a problem you can compensate for this by using our pitch shifter DSP effect which can be used to make the pitch go back to the normal level.

-Pete

  • You must to post comments
0
0

Ah, that’s exactly what I’m looking for. Thankyou very much!

  • You must to post comments
0
0

Happy to help.

-Pete

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.