コード例 #1
0
ファイル: audio.go プロジェクト: b1naryth1ef/allegro
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))))
}
コード例 #2
0
ファイル: audio.go プロジェクト: 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))
}