XmmsClient
Functions
PlaybackControl

This controls the playback. More...

Functions

xmmsc_result_txmmsc_playback_tickle (xmmsc_connection_t *c)
 Stop decoding of current song. More...
 
xmmsc_result_txmmsc_playback_stop (xmmsc_connection_t *c)
 Stops the current playback. More...
 
xmmsc_result_txmmsc_playback_pause (xmmsc_connection_t *c)
 Pause the current playback, will tell the output to not read nor write. More...
 
xmmsc_result_txmmsc_playback_start (xmmsc_connection_t *c)
 Starts playback if server is idle. More...
 
xmmsc_result_txmmsc_playback_seek_ms (xmmsc_connection_t *c, int milliseconds, xmms_playback_seek_mode_t whence)
 Seek to a position given in milliseconds in the current playback. More...
 
xmmsc_result_txmmsc_playback_seek_samples (xmmsc_connection_t *c, int samples, xmms_playback_seek_mode_t whence)
 Seek to a position given in samples in the current playback. More...
 
xmmsc_result_txmmsc_broadcast_playback_status (xmmsc_connection_t *c)
 Requests the playback status broadcast. More...
 
xmmsc_result_txmmsc_playback_status (xmmsc_connection_t *c)
 Make server emit the playback status. More...
 
xmmsc_result_txmmsc_broadcast_playback_current_id (xmmsc_connection_t *c)
 Request the current id broadcast. More...
 
xmmsc_result_txmmsc_playback_current_id (xmmsc_connection_t *c)
 Make server emit the current id. More...
 
xmmsc_result_txmmsc_signal_playback_playtime (xmmsc_connection_t *c)
 Request the playback_playtime signal. More...
 
xmmsc_result_txmmsc_playback_playtime (xmmsc_connection_t *c)
 Make server emit the current playtime. More...
 
xmmsc_result_txmmsc_playback_volume_set (xmmsc_connection_t *c, const char *channel, int volume)
 
xmmsc_result_txmmsc_playback_volume_get (xmmsc_connection_t *c)
 
xmmsc_result_txmmsc_broadcast_playback_volume_changed (xmmsc_connection_t *c)
 

Detailed Description

This controls the playback.

Function Documentation

xmmsc_result_t* xmmsc_broadcast_playback_current_id ( xmmsc_connection_t c)

Request the current id broadcast.

This will be called then the current playing id is changed. New song for example.

xmmsc_result_t* xmmsc_broadcast_playback_status ( xmmsc_connection_t c)

Requests the playback status broadcast.

This will be called when events like play, stop and pause is triggered.

xmmsc_result_t* xmmsc_broadcast_playback_volume_changed ( xmmsc_connection_t c)
xmmsc_result_t* xmmsc_playback_current_id ( xmmsc_connection_t c)

Make server emit the current id.

xmmsc_result_t* xmmsc_playback_pause ( xmmsc_connection_t c)

Pause the current playback, will tell the output to not read nor write.

xmmsc_result_t* xmmsc_playback_playtime ( xmmsc_connection_t c)

Make server emit the current playtime.

xmmsc_result_t* xmmsc_playback_seek_ms ( xmmsc_connection_t c,
int  milliseconds,
xmms_playback_seek_mode_t  whence 
)

Seek to a position given in milliseconds in the current playback.

Parameters
cThe connection structure.
milliseconds
whenceSpecifies how the absolute position in milliseconds is determined. If whence is XMMS_PLAYBACK_SEEK_SET, is treated as an absolute value. If whence is XMMS_PLAYBACK_SEEK_CUR, the new position is computed by adding to the current position.
xmmsc_result_t* xmmsc_playback_seek_samples ( xmmsc_connection_t c,
int  samples,
xmms_playback_seek_mode_t  whence 
)

Seek to a position given in samples in the current playback.

Parameters
cThe connection structure.
samples
whenceSpecifies how the absolute position in samples is determined. If whence is XMMS_PLAYBACK_SEEK_SET, is treated as an absolute value. If whence is XMMS_PLAYBACK_SEEK_CUR, the new position is computed by adding to the current position.
xmmsc_result_t* xmmsc_playback_start ( xmmsc_connection_t c)

Starts playback if server is idle.

xmmsc_result_t* xmmsc_playback_status ( xmmsc_connection_t c)

Make server emit the playback status.

xmmsc_result_t* xmmsc_playback_stop ( xmmsc_connection_t c)

Stops the current playback.

This will make the server idle.

xmmsc_result_t* xmmsc_playback_tickle ( xmmsc_connection_t c)

Stop decoding of current song.

This will start decoding of the song set with xmmsc_playlist_set_next, or the current song again if no xmmsc_playlist_set_next was executed.

xmmsc_result_t* xmmsc_playback_volume_get ( xmmsc_connection_t c)
xmmsc_result_t* xmmsc_playback_volume_set ( xmmsc_connection_t c,
const char *  channel,
int  volume 
)
xmmsc_result_t* xmmsc_signal_playback_playtime ( xmmsc_connection_t c)

Request the playback_playtime signal.

Will update the time we have played the current entry.