Sample Converter
[XMMSServer]

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.
xmms_stream_type_txmms_sample_converter_get_to (xmms_sample_converter_t *conv)
 Return the audio format used by the converter as target.
void xmms_sample_converter_to_medialib (xmms_sample_converter_t *conv, xmms_medialib_entry_t entry)
guint xmms_sample_ms_to_samples (const xmms_stream_type_t *st, guint milliseconds)
 convert from milliseconds to samples for this format.
guint xmms_sample_samples_to_ms (const xmms_stream_type_t *st, guint samples)
 Convert from samples to milliseconds for this format.
guint xmms_sample_bytes_to_ms (const xmms_stream_type_t *st, guint bytes)
 Convert from bytes to milliseconds for this format.
gint xmms_sample_frame_size_get (const xmms_stream_type_t *st)
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.
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

guint xmms_sample_bytes_to_ms ( const xmms_stream_type_t st,
guint  bytes 
)

Convert from bytes to milliseconds for this format.

Definition at line 199 of file sample.head.c.

Referenced by xmms_output_latency().

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.

Definition at line 256 of file sample.head.c.

void xmms_sample_convert_reset ( xmms_sample_converter_t conv  ) 

Definition at line 317 of file sample.head.c.

gint64 xmms_sample_convert_rev_scale ( xmms_sample_converter_t conv,
gint64  samples 
)

Definition at line 309 of file sample.head.c.

gint64 xmms_sample_convert_scale ( xmms_sample_converter_t conv,
gint64  samples 
)

Definition at line 297 of file sample.head.c.

xmms_stream_type_t* xmms_sample_converter_get_from ( xmms_sample_converter_t conv  ) 

Return the audio format used by the converter as source.

Definition at line 121 of file sample.head.c.

xmms_stream_type_t* xmms_sample_converter_get_to ( xmms_sample_converter_t conv  ) 

Return the audio format used by the converter as target.

Definition at line 132 of file sample.head.c.

xmms_sample_converter_t* xmms_sample_converter_init ( xmms_stream_type_t from,
xmms_stream_type_t to 
)

Definition at line 77 of file sample.head.c.

void xmms_sample_converter_to_medialib ( xmms_sample_converter_t conv,
xmms_medialib_entry_t  entry 
)

Definition at line 142 of file sample.head.c.

gint xmms_sample_frame_size_get ( const xmms_stream_type_t st  ) 
guint xmms_sample_ms_to_samples ( const xmms_stream_type_t st,
guint  milliseconds 
)

convert from milliseconds to samples for this format.

Definition at line 177 of file sample.head.c.

guint xmms_sample_samples_to_ms ( const xmms_stream_type_t st,
guint  samples 
)

Convert from samples to milliseconds for this format.

Definition at line 188 of file sample.head.c.

Referenced by xmms_sample_bytes_to_ms().


Generated on Tue Feb 23 18:14:36 2010 for XMMS2 by  doxygen 1.6.1