XMMS2
Functions
Sample Converter

Convert sample formats back and forth. More...

Functions

xmms_sample_converter_txmms_sample_converter_init (xmms_stream_type_t *from, xmms_stream_type_t *to)
 
xmms_stream_type_txmms_sample_converter_get_from (xmms_sample_converter_t *conv)
 Return the audio format used by the converter as source. More...
 
xmms_stream_type_txmms_sample_converter_get_to (xmms_sample_converter_t *conv)
 Return the audio format used by the converter as target. More...
 
void xmms_sample_converter_to_medialib (xmms_sample_converter_t *conv, xmms_medialib_entry_t entry)
 
void xmms_sample_convert (xmms_sample_converter_t *conv, xmms_sample_t *in, guint len, xmms_sample_t **out, guint *outlen)
 do the actual converstion between two audio formats. More...
 
gint64 xmms_sample_convert_scale (xmms_sample_converter_t *conv, gint64 samples)
 
gint64 xmms_sample_convert_rev_scale (xmms_sample_converter_t *conv, gint64 samples)
 
void xmms_sample_convert_reset (xmms_sample_converter_t *conv)
 

Detailed Description

Convert sample formats back and forth.

Function Documentation

void xmms_sample_convert ( xmms_sample_converter_t conv,
xmms_sample_t in,
guint  len,
xmms_sample_t **  out,
guint *  outlen 
)

do the actual converstion between two audio formats.

void xmms_sample_convert_reset ( xmms_sample_converter_t conv)
gint64 xmms_sample_convert_rev_scale ( xmms_sample_converter_t conv,
gint64  samples 
)
gint64 xmms_sample_convert_scale ( xmms_sample_converter_t conv,
gint64  samples 
)
xmms_stream_type_t* xmms_sample_converter_get_from ( xmms_sample_converter_t conv)

Return the audio format used by the converter as source.

xmms_stream_type_t* xmms_sample_converter_get_to ( xmms_sample_converter_t conv)

Return the audio format used by the converter as target.

xmms_sample_converter_t* xmms_sample_converter_init ( xmms_stream_type_t from,
xmms_stream_type_t to 
)
void xmms_sample_converter_to_medialib ( xmms_sample_converter_t conv,
xmms_medialib_entry_t  entry 
)