Example #1
0
func (a *Stream) Destroy() {
	C.al_destroy_audio_stream((*C.ALLEGRO_AUDIO_STREAM)(unsafe.Pointer(a)))
}
Example #2
0
File: audio.go Project: beoran/algo
// Destroys the audio stream.
func (self *AudioStream) Destroy() {
	if self.handle != nil {
		C.al_destroy_audio_stream(self.toC())
	}
	self.handle = nil
}