APIAudiois_sound_playing

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) -> bool

Parameters

NameTypeDefaultDescription
soundSoundNonesound argument for this API call.

Returns

bool

Example

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_sound
  • play_sound
  • stop_sound

Return to the audio overview or continue with the quickstart.