soundplayer_play_sound_async()

Play a system sound and do not wait for completion.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

name

The name of the system sound.

id

If not NULL, the ID used in the play sound request will be returned in id. The caller must free this buffer using bps_free(). This same ID will be delivered in the corresponding SOUNDPLAYER_INFO event.

Library:

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

Description:

The soundplayer_play_sound_async() function plays the specified system sound and returns immediately. A SOUNDPLAYER_INFO event will be delivered when the sound is finished playing.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus