soundplayer_event_get_errno()

Retrieve the errno from the SOUNDPLAYER_INFO event.

Synopsis:

#include <bps/soundplayer.h>
 
BPS_API int soundplayer_event_get_errno(bps_event_t *event)

Since:

BlackBerry 10.2.0

Arguments:

event

The SOUNDPLAYER_INFO event to extract the errno from.

Library:

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

Description:

The soundplayer_event_get_error() function extracts the error number from the specified SOUNDPLAYER_INFO event. This is the POSIX standard error number that corresponds to the Sound Player-specific error in the event. This is the same value that the functions soundplayer_prepare_sound(), soundplayer_play_sound(), and soundplayer_play_sound_blocking() would set errno to under the same conditions.

Returns:

The errno, one of the POSIX standard error numbers, or BPS_FAILURE with errno value set on error.