// FMOD_RESULT F_API FMOD_EventGroup_LoadEventData (FMOD_EVENTGROUP *eventgroup, FMOD_EVENT_RESOURCE resource, FMOD_EVENT_MODE mode); func (g *Group) LoadEventData(resource Resource, mode Mode) error { var ferr C.FMOD_RESULT base.Thread(func() { ferr = C.FMOD_EventGroup_LoadEventData(g.group, C.FMOD_EVENT_RESOURCE(resource), C.FMOD_EVENT_MODE(mode)) }) return base.ResultToError(ferr) }
// FMOD_RESULT F_API FMOD_MusicSystem_LoadSoundData (FMOD_MUSICSYSTEM *musicsystem, FMOD_EVENT_RESOURCE resource, FMOD_EVENT_MODE mode); func (music *MusicSystem) LoadSoundData(resource Resource, mode Mode) error { var ferr C.FMOD_RESULT base.Thread(func() { ferr = C.FMOD_MusicSystem_LoadSoundData(music.system, C.FMOD_EVENT_RESOURCE(resource), C.FMOD_EVENT_MODE(mode)) }) return base.ResultToError(ferr) }