SOUNDCLIP *load_sound_and_play(ScriptAudioClip *aclip, bool repeat) { SOUNDCLIP *soundfx = load_sound_clip(aclip, repeat); if (soundfx != NULL) { if (soundfx->play() == 0) soundfx = NULL; } return soundfx; }
SOUNDCLIP *load_sound_from_path(int soundNumber, int volume, bool repeat) { SOUNDCLIP *soundfx = load_sound_clip_from_old_style_number(false, soundNumber, repeat); if (soundfx != NULL) { if (soundfx->play() == 0) soundfx = NULL; } return soundfx; }