soundplayer_prepare_sound()

Prepare a system sound to be played.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

name

The name of the system sound to be prepared.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The soundplayer_prepare_sound() function prepares the specified system sound to be played.

Calling this function is optional, but may greatly improve the response time of soundplayer_play_sound().

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.