Max Kellermann
5bbcbfb7ce
pcm_resample: moved code to pcm_resample_set()
...
A future patch will implement a 24 bit resampler. To unify code, move
code which can be shared to a separate function.
2008-10-23 20:02:09 +02:00
Max Kellermann
124f79a2a6
pcm_resample: don't resample partial samples
...
Added assertions which ensure that there are no partial samples in the
source buffer.
2008-10-23 20:01:12 +02:00
Max Kellermann
b13d656f81
pcm_resample: don't hard-code sample size
...
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.
2008-10-23 20:01:08 +02:00
Max Kellermann
6b1c54ef96
pcm_utils: moved code to pcm_resample.c
...
Separate the resampling code from the rest of pcm_utils.c. Create two
sub-libraries: pcm_resample_libsamplerate.c and
pcm_resample_fallback.c.
2008-10-23 20:00:51 +02:00