is_sound_playing
Returns whether a sound effect is playing.
Signature
is_sound_playing
Returns whether a sound effect is playing.Signature
is_sound_playing(sound: Sound) -> boolParameters
| Name | Type | Default | Description |
|---|---|---|---|
sound | Sound | None | sound argument for this API call. |
Returns
boolExample
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.