예제 #1
0
파일: group.go 프로젝트: runningwild/fmod
// 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)
}
예제 #2
0
파일: music.go 프로젝트: runningwild/fmod
// 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)
}