예제 #1
0
파일: sdl_mixer.go 프로젝트: flazz/go-sdl2
func VolumeMusic(volume int) int {
	_volume := (C.int)(volume)
	return (int)(C.Mix_VolumeMusic(_volume))
}
예제 #2
0
// Sets the volume to the value specified.
func VolumeMusic(volume int) int { return int(C.Mix_VolumeMusic(C.int(volume))) }
예제 #3
0
func SetVolume(volume float64) {
	C.Mix_VolumeMusic(C.int(volume * float64(C.MIX_MAX_VOLUME)))
}
예제 #4
0
파일: mixer.go 프로젝트: beoran/fungo
func VolumeMusic(volume int) (int) {
  return int(C.Mix_VolumeMusic(C.int(volume)));
}
예제 #5
0
func GetVolume() float64 {
	return float64(C.Mix_VolumeMusic(-1)) / float64(C.MIX_MAX_VOLUME)
}