示例#1
0
func (m *Mixer) SetDefault() bool {
	return bool(C.al_set_default_mixer((*C.ALLEGRO_MIXER)(unsafe.Pointer(m))))
}
示例#2
0
文件: audio.go 项目: beoran/algo
// Sets the mixer as the default mixer.
func (mixer *Mixer) SetDefault() {
	// this is purely to prevent the GC from collecting this mixer.
	defaultMixer = mixer
	C.al_set_default_mixer(mixer.handle)
}