XMMS2
|
Convert sample formats back and forth. More...
Convert sample formats back and forth.
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 | ) |
Definition at line 206 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 | ||
) |
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().