Esempio n. 1
0
func (m *Mixer) SetDefault() bool {
	return bool(C.al_set_default_mixer((*C.ALLEGRO_MIXER)(unsafe.Pointer(m))))
}
Esempio n. 2
0
File: audio.go Progetto: 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)
}