// FMOD_RESULT F_API FMOD_EventSystem_Init (FMOD_EVENTSYSTEM *eventsystem, int maxchannels, FMOD_INITFLAGS flags, void *extradriverdata, FMOD_EVENT_INITFLAGS eventflags); func (system *System) Init(max_channels int, init_flags InitFlags, extradriverdata interface{}, event_init_flags EventInitFlags) error { var ferr C.FMOD_RESULT base.Thread(func() { ferr = C.FMOD_EventSystem_Init(system.system, C.int(max_channels), C.FMOD_INITFLAGS(init_flags), unsafe.Pointer(uintptr(0)), C.FMOD_EVENT_INITFLAGS(event_init_flags)) }) return base.ResultToError(ferr) }
// FMOD_RESULT F_API FMOD_System_Init (FMOD_SYSTEM *system, int maxchannels, FMOD_INITFLAGS flags, void *extradriverdata); func (s *System) Init(max_channels int, flags InitFlags, extra_driver_data interface{}) error { var ferr C.FMOD_RESULT base.Thread(func() { ferr = C.FMOD_System_Init(s.system, C.int(max_channels), C.FMOD_INITFLAGS(flags), unsafe.Pointer(uintptr(0))) }) return base.ResultToError(ferr) }