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