soundplayer_play_sound_blocking()

Play a system sound and wait for completion.

Synopsis:

#include <bps/soundplayer.h>
 
BPS_API int soundplayer_play_sound_blocking(const char *name)

Arguments:

name

The name of the system sound.

Library:

libbps

Description:

The soundplayer_play_sound_blocking() function plays the specified system sound and returns after the sound finishes playing.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.