0
0

hi, i have a problem when playing 2 events on one stream fsb, both events have fade in and fade out time.
When one event is playing, i stop this and start the other. But i didn’t hear the cross fade effect, instead the former one was stopped at once.

i already called createsound and preloadFSB for 2 times. This is really annoying.

  • You must to post comments
0
0

I have run a test and the EVENTFINISHED callback gets fired after the fade out. I don’t see how something after the fade out could be cutting off the fade out. Could you confirm that the fade out is complete when you call freeEventData?

  • You must to post comments
0
0

have you used these code?
[code:2isigme1]
ERRCHECK(result = system->createSound("..\media\tutorial_bank.fsb", FMOD_CREATESTREAM, 0, &streambank));
ERRCHECK(result = system->createSound("..\media\tutorial_bank.fsb", FMOD_CREATESTREAM, 0, &streambank2));
ERRCHECK(result = eventsystem->preloadFSB("tutorial_bank.fsb", 0, streambank));
ERRCHECK(result = eventsystem->preloadFSB("tutorial_bank.fsb", 1, streambank2));
[/code:2isigme1]
and do not set the media path to the fsb folder,try this: 2 events A and B with fade out time, play A, then stop A and play B, then stop B and play A. I think you’ll see the fade out cut.

  • You must to post comments
0
0

freeEventData will clean up all the data for that event, the event will not be able to fade out once it’s cleaned up.

  • You must to post comments
0
0

Actually I set the callback for the event, when the FMOD_EVENT_CALLBACKTYPE is FMOD_EVENT_CALLBACKTYPE_EVENTFINISHED a flag would be set. Then FreeEventData would be called according to this flag…
But still no fade out.

  • You must to post comments
0
0

[code:1bjvmajm]
ERRCHECK(result = system->createSound("..\media\tutorial_bank.fsb", FMOD_CREATESTREAM, 0, &streambank));
ERRCHECK(result = system->createSound("..\media\tutorial_bank.fsb", FMOD_CREATESTREAM, 0, &streambank2));
ERRCHECK(result = eventsystem->preloadFSB("tutorial_bank.fsb", 0, streambank));
ERRCHECK(result = eventsystem->preloadFSB("tutorial_bank.fsb", 1, streambank2));
[/code:1bjvmajm]

And i will freeEventData when one event is finished play.
I did some test, when freeEventData is not called, it’s working well. Why would FreeEventData affect this?

  • You must to post comments
0
0

Make sure you’re setting the streaminstance parameter for preloadFSB correctly. Also, you should create and preload as many Sounds as ‘max streams’, in this case 10.

  • You must to post comments
0
0

10

  • You must to post comments
0
0

What is the Max Streams property on that sound bank?

  • You must to post comments
0
0

the former one lost its channel.

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.