Example #1
0
func (m *Mixer) AttachStream(stream *Stream) bool {
	return bool(C.al_attach_audio_stream_to_mixer((*C.ALLEGRO_AUDIO_STREAM)(unsafe.Pointer(stream)), (*C.ALLEGRO_MIXER)(unsafe.Pointer(m))))
}
Example #2
0
File: audio.go Project: beoran/algo
// Attaches the audio stream to the given mixer.
func (stream *AudioStream) Attach(mixer *Mixer) bool {
	return cb2b(C.al_attach_audio_stream_to_mixer(stream.handle, mixer.handle))
}