0
0

Hello,

Has someone succeeded in FMOD to make a sound shorter (or longer) ?
That is to say, I have a whole sound loaded in memory, and I want to delete part of its sound data, and make its length smaller.

I think I can create a new sound the length I want it and fill it with the desired source sound data (then destroy the previous sound), but if the source is a few megabytes it can be a little slow.

Maybe someone has a better way to do it ?

  • You must to post comments
0
0

fmod’s offline tools that process data pretty much just call System::createSound on the sound (loaded as static sample) then Sound::lock and Sound::unlock.
It loads the whole sound into memory but its not that slow. Thats pretty much the way i would do it.

I guess you could use FMOD_OPENONLY and create your sound by only loading sections of it with Sound::readData and Sound::seekData. You could make it readData into its own pointer with Sound::lock/unlock or just write the read data out to some other destination.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.