0
0

To start this off with I’m in C# using event header version 0x00010725 and dll version 0.4.8.7.

I have been tasked with writing a system to load and play events in C# and it has been working pretty well. When loading events using the INFOONLY flag it works fine. However, when I try to load it with either the NONBLOCKING or the DEFAULT flags so that I can play the events, as I near the end of the group of events, the EventGroup function starts to return FMOD_ERR_INTERNAL. The weirdest part about this error is if I try it again it will work. As I get farther along I have to try it again more, but it ends up taking a maximum of 9 attempts for the last few events I have to load. The events all play correctly and display their info correctly, but I know this isn’t an ideal way to call this.

Any suggestions?

Thank you so much!

code to load event:

[code:1z46hp28]

          // Load the dialog event with everything (not just info).
          fmod_event = null;
          fmod_result = fmod_event_group.getEventByIndex(i, FMOD.EVENT_MODE.NONBLOCKING, ref fmod_event);

          //---------------------------------------------------------------------------
          // OK, so this is interesting, for some reason the event randomly returns FMOD_ERR_INTERNAL, but
          // if you try to load it again it results in an ok.
          for (int attempts = 0; fmod_result != FMOD.RESULT.OK; ++attempts)
          {

            fmod_result = fmod_event_group.getEventByIndex(i, FMOD.EVENT_MODE.NONBLOCKING, ref fmod_event);

            if (attempts == 20)
            {
              OKDialogBox.ShowErrorMessage("DialogAudioModifier.LoadEvents() failed to load event " + event_name);
              break;
            }
          }

[/code:1z46hp28]

  • You must to post comments
0
0

Can you try a more up to date version than 4.08? That branch is about to be deprecated and not supported. 4.14 is the latest stable branch

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.