---
name: "xine_management"
section: "3"
platform: "linux"
package: "libxine-dev"
version: "0.9.8-2woody3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/xine_management"
---

# xine\_management(3)

## NAME

Engine management -

### Defines

\#define **SPEED\_PAUSE**   0\
 \#define **SPEED\_SLOW\_4**   1\
 \#define **SPEED\_SLOW\_2**   2\
 \#define **SPEED\_NORMAL**   4\
 \#define **SPEED\_FAST\_2**   8\
 \#define **SPEED\_FAST\_4**   16\

### Functions

void **xine\_play** (**xine\_t** \*self, char \*MRL, int start\_pos, int start\_time)\
 *Start to play a stream.* void **xine\_set\_speed** (**xine\_t** \*self, int speed)\
 *Set playback speed.* int **xine\_get\_speed** (**xine\_t** \*self)\
 *Get the playback speed.* void **xine\_set\_av\_offset** (**xine\_t** \*self, int offset\_pts)\
 *Set audio/video sync.* int **xine\_get\_av\_offset** (**xine\_t** \*self)\
 *Get audio/video sync.* void **xine\_stop** (**xine\_t** \*self)\
 *Stop playing.* int **xine\_eject** (**xine\_t** \*self)\
 *Eject media.* int **xine\_get\_status** (**xine\_t** \*self)\
 *Get current xine status.* int **xine\_get\_current\_position** (**xine\_t** \*self)\
 *Get current position.* int **xine\_get\_current\_time** (**xine\_t** \*self)\
 *get current pos in seconds.* int **xine\_get\_stream\_length** (**xine\_t** \*self)\
 *estimate length of input stream in seconds.* int **xine\_get\_audio\_channel** (**xine\_t** \*self)\
 *Get current audio channel.* void **xine\_select\_audio\_channel** (**xine\_t** \*self, int channel)\
 *Set audio channel.* int **xine\_get\_spu\_channel** (**xine\_t** \*self)\
 *Get current sub-title channel.* void **xine\_select\_spu\_channel** (**xine\_t** \*self, int channel)\
 *Set sub-title channel.*

## DEFINE DOCUMENTATION

### #define SPEED\_FAST\_2 8

Playback at 200% speed.

**See also:**  **xine\_set\_speed**(), **xine\_get\_speed**()

### #define SPEED\_FAST\_4 16

Playback at 400% speed.

**See also:**  **xine\_set\_speed**(), **xine\_get\_speed**()

### #define SPEED\_NORMAL 4

Playback at 100% speed.

**See also:**  **xine\_set\_speed**(), **xine\_get\_speed**()

### #define SPEED\_PAUSE 0

Playback pause.

**See also:**  **xine\_set\_speed**(), **xine\_get\_speed**()

### #define SPEED\_SLOW\_2 2

Playback at 50% speed.

**See also:**  **xine\_set\_speed**(), **xine\_get\_speed**()

### #define SPEED\_SLOW\_4 1

Playback at 25% speed.

**See also:**  **xine\_set\_speed**(), **xine\_get\_speed**()

## FUNCTION DOCUMENTATION

### int xine\_eject (xine\_t \* self)

Eject media.

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *1 on success, 0 on failure.*

*Tell current input plugin to eject media.*

**Parameters:**

- *self*

  ### int xine\_get\_audio\_channel (xine\_t \* self)

*Get current audio channel.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Current audio chennel*

*Get current audio channel.*

**Parameters:**

- *self*

  ### int xine\_get\_av\_offset (xine\_t \* self)

*Get audio/video sync.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Current audio/video offset.*

*Return the current audio/video sync offset ( see* **xine\_set\_av\_offset***() ).*

**Parameters:**

- *self*

  ### int xine\_get\_current\_position (xine\_t \* self)

*Get current position.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Current position ( 0..65535 )*

*Get current position in stream.*

**Parameters:**

- *self*

  ### int xine\_get\_current\_time (xine\_t \* self)

*get current pos in seconds.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *current position measured in seconds from the beginning of the stream*

*get current position measured in seconds from the beginning of the stream*

**Parameters:**

- *self*

  ### int xine\_get\_speed (xine\_t \* self)

*Get the playback speed.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *speed value ( see SPEED\_PAUSE, SPEED\_SLOW\_4, SPEED\_SLOW\_2, SPEED\_NORMAL, SPEED\_FAST\_2, SPEED\_FAST\_4 )*

*Get the current speed playback. Possible values are SPEED\_PAUSE, SPEED\_SLOW\_4, SPEED\_SLOW\_2, SPEED\_NORMAL, SPEED\_FAST\_2, SPEED\_FAST\_4.*

**Parameters:**

- *self*

  ### int xine\_get\_spu\_channel (xine\_t \* self)

*Get current sub-title channel.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Current sub-title channel*

*Get current sub-title channel.*

**Parameters:**

- *self*

  ### int xine\_get\_status (xine\_t \* self)

*Get current xine status.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Current status ( see Player status constants )*

*Return the current state of xine engine.*

**Parameters:**

- *self*

  ### int xine\_get\_stream\_length (xine\_t \* self)

*estimate length of input stream in seconds.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *length of input stream in seconds or 0 if stream is not seekable*

*estimate length of input stream in seconds*

**Parameters:**

- *self*

  ### void xine\_play (xine\_t \* self, char \* MRL, int start\_pos, int start\_time)

*Start to play a stream.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

- *MRL*

  *Media Resource Location to open*

- *start\_pos*

  *position in input source (0..65535)*

- *start\_time*

  *position measured in seconds from stream start*

**Returns:**  *Nothing*

*Open a stream and play it. If both start position parameters  are !=0 start\_pos will be used for non-seekable streams both values will be ignored*

**Parameters:**

- *self*

  - *MRL*

  - *start\_pos*

  - *start\_time*

  ### void xine\_select\_audio\_channel (xine\_t \* self, int channel)

*Set audio channel.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Nothing*

*Set desired audio channel.*

**Parameters:**

- *self*

  - *channel*

  ### void xine\_select\_spu\_channel (xine\_t \* self, int channel)

*Set sub-title channel.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Nothing*

*Set desired sub-title channel.*

**Parameters:**

- *self*

  - *channel*

  ### void xine\_set\_av\_offset (xine\_t \* self, int offset\_pts)

*Set audio/video sync.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

- *offset\_pts*

  *New pts.*

**Returns:**  *Nothing*

*Set audio/video sync offset, according to offset\_pts value ( see* **xine\_get\_av\_offset***() ).*

**Parameters:**

- *self*

  - *offset\_pts*

  ### void xine\_set\_speed (xine\_t \* self, int speed)

*Set playback speed.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

- *speed*

  *Desired playback speed ( see SPEED\_PAUSE, SPEED\_SLOW\_4, SPEED\_SLOW\_2, SPEED\_NORMAL, SPEED\_FAST\_2, SPEED\_FAST\_4 )*

**Returns:**  *Nothing*

*Set the playback speed to desired speed, according of SPEED\_x constant.*

**Parameters:**

- *self*

  - *speed*

  ### void xine\_stop (xine\_t \* self)

*Stop playing.*

**Parameters:**

- *self*

  *Current xine engine configuration ( see* **xine\_init***() )*

**Returns:**  *Nothing*

*Stop the playback.*

**Parameters:**

- *self*
