Functions | |
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. | |
void | xmms_sample_converter_to_medialib (xmms_sample_converter_t *conv, xmms_medialib_entry_t entry) |
xmms_sample_converter_t * | xmms_sample_audioformats_coerce (xmms_stream_type_t *in, const GList *goal_types) |
Find the best pair of formats. | |
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) |
xmms_sample_converter_t* xmms_sample_audioformats_coerce | ( | xmms_stream_type_t * | in, | |
const GList * | goal_types | |||
) |
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 280 of file sample.head.c.
Referenced by update_playtime().
void xmms_sample_convert | ( | xmms_sample_converter_t * | conv, | |
xmms_sample_t * | in, | |||
guint | len, | |||
xmms_sample_t ** | out, | |||
guint * | outlen | |||
) |
void xmms_sample_convert_reset | ( | xmms_sample_converter_t * | conv | ) |
Definition at line 398 of file sample.head.c.
gint64 xmms_sample_convert_rev_scale | ( | xmms_sample_converter_t * | conv, | |
gint64 | samples | |||
) |
Definition at line 390 of file sample.head.c.
gint64 xmms_sample_convert_scale | ( | xmms_sample_converter_t * | conv, | |
gint64 | samples | |||
) |
Definition at line 378 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 118 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 129 of file sample.head.c.
void xmms_sample_converter_to_medialib | ( | xmms_sample_converter_t * | conv, | |
xmms_medialib_entry_t | entry | |||
) |
Definition at line 139 of file sample.head.c.
gint xmms_sample_frame_size_get | ( | const xmms_stream_type_t * | st | ) |
Definition at line 287 of file sample.head.c.
Referenced by xmms_output_read(), xmms_sample_bytes_to_ms(), xmms_sample_convert(), and xmms_sample_convert_reset().
guint xmms_sample_ms_to_samples | ( | const xmms_stream_type_t * | st, | |
guint | milliseconds | |||
) |
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 269 of file sample.head.c.
Referenced by xmms_sample_bytes_to_ms().