PlaybackControl
[XMMSClient]

This controls the playback. More...

Functions

xmmsc_result_txmmsc_playback_tickle (xmmsc_connection_t *c)
 Stop decoding of current song.
xmmsc_result_txmmsc_playback_stop (xmmsc_connection_t *c)
 Stops the current playback.
xmmsc_result_txmmsc_playback_pause (xmmsc_connection_t *c)
 Pause the current playback, will tell the output to not read nor write.
xmmsc_result_txmmsc_playback_start (xmmsc_connection_t *c)
 Starts playback if server is idle.
xmmsc_result_txmmsc_playback_seek_ms_abs (xmmsc_connection_t *c, int milliseconds)
 Seek to a absolute time in the current playback.
xmmsc_result_txmmsc_playback_seek_ms_rel (xmmsc_connection_t *c, int milliseconds)
 Seek to a time relative to the current position in the current playback.
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.
xmmsc_result_txmmsc_playback_seek_samples_abs (xmmsc_connection_t *c, int samples)
 Seek to a absoulte number of samples in the current playback.
xmmsc_result_txmmsc_playback_seek_samples_rel (xmmsc_connection_t *c, int samples)
 Seek to a number of samples relative to the current position in the current playback.
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.
xmmsc_result_txmmsc_broadcast_playback_status (xmmsc_connection_t *c)
 Requests the playback status broadcast.
xmmsc_result_txmmsc_playback_status (xmmsc_connection_t *c)
 Make server emit the playback status.
xmmsc_result_txmmsc_broadcast_playback_current_id (xmmsc_connection_t *c)
 Request the current id broadcast.
xmmsc_result_txmmsc_playback_current_id (xmmsc_connection_t *c)
 Make server emit the current id.
xmmsc_result_txmmsc_signal_playback_playtime (xmmsc_connection_t *c)
 Request the playback_playtime signal.
xmmsc_result_txmmsc_playback_playtime (xmmsc_connection_t *c)
 Make server emit the current playtime.
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.

Definition at line 251 of file playback.c.

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.

Definition at line 227 of file playback.c.

xmmsc_result_t* xmmsc_broadcast_playback_volume_changed ( xmmsc_connection_t c  ) 

Definition at line 318 of file playback.c.

xmmsc_result_t* xmmsc_playback_current_id ( xmmsc_connection_t c  ) 

Make server emit the current id.

Definition at line 262 of file playback.c.

xmmsc_result_t* xmmsc_playback_pause ( xmmsc_connection_t c  ) 

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

Definition at line 68 of file playback.c.

xmmsc_result_t* xmmsc_playback_playtime ( xmmsc_connection_t c  ) 

Make server emit the current playtime.

Definition at line 286 of file playback.c.

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:
c The connection structure.
milliseconds 
whence Specifies 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.

Definition at line 143 of file playback.c.

xmmsc_result_t* xmmsc_playback_seek_ms_abs ( xmmsc_connection_t c,
int  milliseconds 
)

Seek to a absolute time in the current playback.

Parameters:
c The connection structure.
milliseconds The total number of ms where playback should continue.
Deprecated:

Definition at line 100 of file playback.c.

xmmsc_result_t* xmmsc_playback_seek_ms_rel ( xmmsc_connection_t c,
int  milliseconds 
)

Seek to a time relative to the current position in the current playback.

Parameters:
c The connection structure.
milliseconds The offset in ms from the current position to where playback should continue.
Deprecated:

Definition at line 121 of file playback.c.

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:
c The connection structure.
samples 
whence Specifies 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.

Definition at line 210 of file playback.c.

xmmsc_result_t* xmmsc_playback_seek_samples_abs ( xmmsc_connection_t c,
int  samples 
)

Seek to a absoulte number of samples in the current playback.

Parameters:
c The connection structure.
samples the total number of samples where playback should continue.
Deprecated:

Definition at line 164 of file playback.c.

xmmsc_result_t* xmmsc_playback_seek_samples_rel ( xmmsc_connection_t c,
int  samples 
)

Seek to a number of samples relative to the current position in the current playback.

Parameters:
c The connection structure.
samples The offset in number of samples from the current position to where playback should continue.
Deprecated:

Definition at line 186 of file playback.c.

xmmsc_result_t* xmmsc_playback_start ( xmmsc_connection_t c  ) 

Starts playback if server is idle.

Definition at line 80 of file playback.c.

xmmsc_result_t* xmmsc_playback_status ( xmmsc_connection_t c  ) 

Make server emit the playback status.

Definition at line 238 of file playback.c.

xmmsc_result_t* xmmsc_playback_stop ( xmmsc_connection_t c  ) 

Stops the current playback.

This will make the server idle.

Definition at line 55 of file playback.c.

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.

Definition at line 42 of file playback.c.

xmmsc_result_t* xmmsc_playback_volume_get ( xmmsc_connection_t c  ) 

Definition at line 309 of file playback.c.

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

Definition at line 295 of file playback.c.

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.

Definition at line 275 of file playback.c.


Generated on Tue Feb 23 18:17:57 2010 for XmmsClient by  doxygen 1.6.1