0
0

Hey all,

I’ve loaded an FEV file into our (C#/IronPython) game. However, whenever I attempt to do a getGroup or getEvent call, I am returned an FMOD.RESULT.ERR_INVALID_SPEAKER error ("An invalid speaker was passed to this function based on the current speaker mode"). I’m unsure as to why this is, as the sounds are declared in the FMOD Designer file to be 2D and I’m doing vanilla initialization (shown below):

[code:a29f2x84]
def init(self, oid):
self.OID = oid
fev_loc = "../Worlds/Sounds/may30test.fev"
eventinfo = clr.Reference[FMOD.EVENT_LOADINFO](FMOD.EVENT_LOADINFO())
eventproj = clr.Reference[FMOD.EventProject](FMOD.EventProject())
if(SoundEventTest.eventsys == None): #is not initialized
ret, SoundEventTest.eventsys = FMOD.Event_Factory.EventSystem_Create(SoundEventTest.eventsys)
SoundEventTest.eventsys.init(100,FMOD.INITFLAG.NORMAL,System.IntPtr.Zero)
result = SoundEventTest.eventsys.load(fev_loc,eventinfo,eventproj)
if(result != FMOD.RESULT.OK):
ClientAPI.Write(’Failed to load FEV.\n’)
else:
ClientAPI.Write(’FEV loaded.’)
[/code:a29f2x84]

The above is IronPython interfacing with our C# FMOD wrapper to initialize the event system. It returns an FMOD.RESULT.OK. Nowhere am I setting the speaker mode explicitly…so I’m kinda confused as to what’s going on ๐Ÿ˜› . Any help anyone could give would be awesome ๐Ÿ˜€

Thanks!
Aviosity

  • You must to post comments
0
0

are you sure you’ve updated the C# file in unison with the dll properly. They cannot be different versions.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.