Beispiel #1
0
//Returns: previous chunk volume setting, Sets volume of Chunk
func (c *Chunk) Volume(volume int) int {
	return int(C.Mix_VolumeChunk(c.cchunk, C.int(volume)))
}
Beispiel #2
0
func (chunk *Chunk) Volume(volume int) int {
	_chunk := (*C.Mix_Chunk)(unsafe.Pointer(chunk))
	_volume := (C.int)(volume)
	return (int)(C.Mix_VolumeChunk(_chunk, _volume))
}
Beispiel #3
0
func VolumeChunk(chunk * C.Mix_Chunk, volume int) (int) {
  return int(C.Mix_VolumeChunk(chunk, C.int(volume)));
}