Example #1
0
func (v *Voice) Destroy() {
	C.al_destroy_voice((*C.ALLEGRO_VOICE)(unsafe.Pointer(v)))
}
Example #2
0
File: audio.go Project: beoran/algo
// Destroys the voice.
func (self *Voice) Destroy() {
	if self.handle != nil {
		C.al_destroy_voice(self.toC())
	}
	self.handle = nil
}