set_sound_volume
Sets a sound effect volume from 0 to 1.
Signature
set_sound_volume
Sets a sound effect volume from 0 to 1.Signature
set_sound_volume(sound: Sound, volume: float) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
sound | Sound | None | sound argument for this API call. |
volume | float | None | volume argument for this API call. |
Returns
NoneExample
from conjure import *
init_window(360, 640, "Audio")
sound = load_sound("coin.mp3")
if is_key_pressed(KEY_SPACE):
play_sound(sound)See also
load_soundplay_soundstop_sound
Return to the audio overview or continue with the quickstart.