0
0

I’ve run into an issue when stitching streams using the FMOD_Sound_SetSubSound and FMOD_Sound_SetSubSoundSentence APIs.

If I load three streams as subsounds, then set the sentence order with anything other than 0 as the first index, the first stream is truncated on the first playback, and totally ignored on subsequent playbacks. E.g. a sentence set to 0,1,2 works fine, but a sentence set to 2,1,0 will truncate or skip stream index 2. No errors are reported.

I’m seeing this on Mac OS X 10.4.9 (PPC) with FMOD Ex 4.06.13 and 4.07.10, using the e/d/c.ogg files from the SDK in my tests.

  • You must to post comments
0
0

try setting ‘initialsubsound’ to the index of your first sentence member in FMOD_CREATESOUNDEXINFO and see if that does anything, i’ll test it here myself soon.

  • You must to post comments
0
0

Setting ‘initialsubsound’ to anything other than zero leads to a crash:
[code:3oqp12ua]Thread 0 Crashed:
0 FMODEx 0x0069f9b4 FMOD::SystemI::createSoundInternal(char const*, unsigned, FMOD_CREATESOUNDEXINFO*, FMOD::SoundI) + 4836
1 FMODEx 0x006a3d28 FMOD::SystemI::SystemI[in-charge]() + 12964
2 FMODEx 0x0069c704 FMOD::System::createStream(char const*, unsigned, FMOD_CREATESOUNDEXINFO*, FMOD::Sound
) + 72
[/code:3oqp12ua]
Edit: I should add that the parent stream is created with FMOD_OPENUSER – the docs aren’t clear on whether initialsubsound should work in this situation.

  • You must to post comments
0
0

This problem is still present in the latest release (4.06.20) only now the sentence won’t play at all after the first playback.

  • You must to post comments
0
0

I’ve the same problem.
Working to solve this: http://52.88.2.202/forum/viewtopic.php?t=8910 , I’ve noticed that the sentence works only with 0,1 order.

Also, I can setPosition of a Channel correctly only if the current playing subsound is the subsound at index 0, otherwise the stream don’t seek; these problems seem to be correlated.

Mac OS X 10.4.9 Intel
FMOD Ex 4.06.20

  • You must to post comments
0
0

[quote="Frank C.":28lx0k2b]Setting ‘initialsubsound’ to anything other than zero leads to a crash:
[code:28lx0k2b]Thread 0 Crashed:
0 FMODEx 0x0069f9b4 FMOD::SystemI::createSoundInternal(char const*, unsigned, FMOD_CREATESOUNDEXINFO*, FMOD::SoundI) + 4836
1 FMODEx 0x006a3d28 FMOD::SystemI::SystemI[in-charge]() + 12964
2 FMODEx 0x0069c704 FMOD::System::createStream(char const*, unsigned, FMOD_CREATESOUNDEXINFO*, FMOD::Sound
) + 72
[/code:28lx0k2b]
Edit: I should add that the parent stream is created with FMOD_OPENUSER – the docs aren’t clear on whether initialsubsound should work in this situation.[/quote:28lx0k2b]

Ok I fixed that, thats because there are in fact no substreams at that time, and ‘initialsubsound’ is pretty meaningless. I should have thought of that when I suggested it first.

  • You must to post comments
0
0

I’ve found the problem for the missing subsound playback now and have also fixed this for the next release.

  • You must to post comments
0
0

That’s good to hear – literally 😉

Thanks Brett!

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.