in a wavfile with a loopregion defined in it Fmod loops that region. If you have a portion of a sound before the loopregion Fmod plays that sound when the sound is started and then loops within the region.
Now, if I would like to have a prtion of a sound after the loopregion that plays after the sound is stopped – as a part of it’s fadeout – how to do this? I cannot make use of the sustainport and splitting the file as this is music and has to be interleaved.
Any ideas? Yet another loop defintion maybe, "loop and play to end, beyond defined region"
[quote:32aloyw8]’loop and play to end’ already does this, it disables looping when the cursor leaves the sound instance box and plays to the end of the sound.[/quote:32aloyw8]
Actually, Designer doesn’t exhibit this behavior. The definition will play from the beginning of the file, and loop the defined loop region, but when Stop is pressed, the sound just stops wherever it is, even when the sound instance properties are set to "loop and play to end". If "key off" is pressed, nothing happens. Maybe this is just a designer bug.
You can get this kind of behavior from a sound event by defining three seperate sound definitions for start / loop / end – then putting them on a single layer, and placing a sustain point on the ‘loop’ definition. Then when "key off" is pressed, it plays through the rest of the loop and seamlessly into the ‘end’ segment. Not the same as defining a loop region and having FMOD respond appropriately, but you can get the behavior you are after this way.
- ssnyder answered 11 years ago
the "chop them up" variant does work in some cases, but when you want it all in an interleaved stream from disk it cannot be done that way. So the solution for streambased playback I guess should be to access different parts of the same multichannel wavfile, or?
Please login first to submit.