I’m not sure I’m doing this right so, some help would be greatly appreciated
I’m playing a sequence of music, which sequence is dynamic (I mean I may change the next music to play, or play the same one again). So, in order to do this, I play my first music, and set an end callback that will play the next music after the first one. So far so good, everything is fien except that when I tried with a short sound that was designed to loop, there is a brief but nonetheless ugly jump from one music to another (a little pause in the sounds).
I try a few different things, I don’t know what may be the cause of my problem. Update is called every tick, the sounds are preloaded in memory (no streams).
- choupette asked 11 years ago
Sorry to bother again, but I still have a few problem.
I’m trying to do is this: “A user can swap subsounds that arent playing at the time to do dynamic stitching/sentencing of sounds.” (fmod doc) So I’m using the setSubSoundSentence function. Just to be sure I’m undestanding the doc welle nough, I must put in the same place in the sentence the sound that is playing right now, but is it the one that is actually playing, or the one that is being buffered (using FMOD_TIMEUNIT_BUFFERED then). I think it’s the second solution but not sure. What I’m wondering is will it not raise problems if I change the index of a sound that is playing, but have being fully buffered (not sure I’m clear, I mean fmod is buffering the following sound, which is then the one to stay untouched)?
Another problem I’m encoutering, is one that was mentionned a long time before and was said would be corrected. When I’m putting a syncpoint just at the end or just before the end of my sound, this one is not triggered. I’m using fmod 40205, maybe it was corrected right after? I quickly checked the changenotes of more recent versions but didn’t find it mentionned.
hum… after having tried different things, I have come to think I misunderstood something: this function can’t be called while the parent stream is playing, can it? When I’m doing it it cuts the sound actually playing and launch the sentence again…
That’s just out of curiosity :p
I’m going back to use the example mentionned, will have to change a few of my code, but at least it’s a strong base to begin with 😉
[quote="brett":3r4qup08]yes it can be done while playing, check the ‘realtimestitching’ example which does exactly this.[/quote:3r4qup08]
Hum… I was speaking of the setSubSoundSentence function, it isn’t called while the stream is playing in this example (or maybe I misunderstood your answer?). When I try to in my code it has strange behaviour, maybe it’s me using it the bad way if nobody encoutered this issue. Nevermind, I managed to do it another way. In fact I’m doing quite the same thing as the realtimestitching example now, while before I tried using callback called before the end of the song, and change the sentence.
Please login first to submit.