aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_resample_libsamplerate.c
Commit message (Collapse)AuthorAge
* pcm: use GLib loggingMax Kellermann2008-12-29
|
* pcm_resample: support for libsamplerate < 0.1.3Max Kellermann2008-10-24
| | | | | libsamplerate 0.1.2 didn't have the 32 bit <-> float conversion routines. Emulate them in case they aren't supported.
* pcm_resample: implemented 24 bit resamplingMax Kellermann2008-10-23
| | | | | | | Similar to pcm_resample_16(), implement pcm_resample_24(). The 24 bit implementation is very similar, but it uses src_int_to_float_array() instead of src_short_to_float_array() before sending data to libsamplerate.
* pcm_resample: moved code to pcm_resample_set()Max Kellermann2008-10-23
| | | | | A future patch will implement a 24 bit resampler. To unify code, move code which can be shared to a separate function.
* pcm_resample: don't resample partial samplesMax Kellermann2008-10-23
| | | | | Added assertions which ensure that there are no partial samples in the source buffer.
* pcm_resample: don't hard-code sample sizeMax Kellermann2008-10-23
| | | | | | Use sizeof(sample) instead of hard-coding "2". Although we're in 16 bit right now, this will make code sharing easier when we support other sample sizes.
* pcm_utils: moved code to pcm_resample.cMax Kellermann2008-10-23
Separate the resampling code from the rest of pcm_utils.c. Create two sub-libraries: pcm_resample_libsamplerate.c and pcm_resample_fallback.c.