volume
of channel
, out of mix.max_volume
If channel == -1
, set the volume of all channels.
Returns the current volume of the channel, or if channel == -1
the average volume.
# Set the `volume` of `channel`, out of `mix.max_volume`
#
# If `channel == -1`, set the volume of all channels.
#
# Returns the current volume of the channel, or if `channel == -1` the average volume.
fun volume(channel, volume: Int): Int `{
return Mix_Volume(channel, volume);
`}
lib/sdl2/mixer.nit:133,2--140,3