mme_getrandom()

Get the random playback mode for a control context

Synopsis:

#include <mme/mme.h>

int mme_getrandom( mme_hdl_t *hdl );

Arguments:

hdl
An MME connection handle.

Library:

mme

Description:

The function mme_getrandom() tells you whether the specified control context has been set to random playback mode. On success, it returns the control context's random mode.

See mme_mode_random_t for a description of the random modes.

Events

None delivered.

Blocking and validation

Full validation of data; all arguments are checked before the call returns. Verifies that the client application code is valid. Blocks on control contexts.

If mme_getrandom() is called and another function is called before mme_getrandom() returns, the second function blocks on io-media until mme_getrandom() returns. If there are no other pending calls, mme_getrandom() returns without blocking on io-media.

Returns:

0
Success: the random playback mode for the control context.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mme_getrepeat(), mme_getscanmode() mme_setrandom() mme_setrepeat(), mme_mode_random_t, mme_mode_repeat_t