mme_play_get_speed()

Gets playback speed and direction (forward, reverse, pause) for tracks

Synopsis:

#include <mme/mme.h>

int mme_play_get_speed( mme_hdl_t *hdl,
                        int *speed );


Arguments:

hdl
An MME connection handle.
speed
A pointer to the playback speed for the current track, expressed in units of 1/1000 of normal speed.

Library:

mme

Description:

The function mme_play_get_speed() gets the playback speed for the current track or file.

The playback speed is expressed in units of 1/1000 of normal speed: 1000 means normal speed, 2000 means double speed, etc. Positive values mean forward, negative values mean reverse, and zero means pause. Values between 0 and 1000 are slow speed playback.


Note: iPods do not report their current playback speed. Queries for their playback speed always return a nominal 1000, but this value should not be considered accurate.

Events

None delivered.

Blocking and validation

This function validates all data, and doesn't block.

Returns:

0
Success: the playback speed was set.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

mme_play(), mme_play_get_info(), mme_play_get_status(), mme_play_set_speed()