Beispiel #1
0
func (s *SampleInstance) SetPlaymode(val uint32) bool {
	return bool(C.al_set_sample_instance_playmode((*C.ALLEGRO_SAMPLE_INSTANCE)(unsafe.Pointer(s)), C.ALLEGRO_PLAYMODE(val)))
}
Beispiel #2
0
func (a *Stream) SetPlaymode(val uint32) bool {
	return bool(C.al_set_audio_stream_playmode((*C.ALLEGRO_AUDIO_STREAM)(unsafe.Pointer(a)), C.ALLEGRO_PLAYMODE(val)))
}
Beispiel #3
0
func (s *Sample) Play(gain, pan, speed float32, loop uint32) (bool, *SampleId) {
	retId := new(C.ALLEGRO_SAMPLE_ID)
	r := bool(C.al_play_sample((*C.ALLEGRO_SAMPLE)(unsafe.Pointer(s)), C.float(gain), C.float(pan), C.float(speed), C.ALLEGRO_PLAYMODE(loop), retId))
	return r, (*SampleId)(unsafe.Pointer(retId))
}