コード例 #1
0
ファイル: audio.go プロジェクト: b1naryth1ef/allegro
func (s *Sample) GetChannels() uint32 {
	return uint32(C.al_get_sample_channels((*C.ALLEGRO_SAMPLE)(unsafe.Pointer(s))))
}
コード例 #2
0
ファイル: audio.go プロジェクト: beoran/algo
// returns the amount of channels the sample has
func (self *Sample) Channels() uint {
	return uint(C.al_get_sample_channels(self.handle))
}