| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Resampling 32 bit samples is the same as resampling 24 bit samples -
both are stored in the int32_t type.
|
|
|
|
|
| |
Due to rounding errors, it was possible that the fallback resampler
returned partial frames.
|
|
|
|
| |
Return a temporary buffer from pcm_resample_*() and pcm_convert().
|
|
|
|
|
| |
Free memory allocated by libsamplerate when the output or the decoder
is closed.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Copy from source to destination buffer directly, don't use the
temporary variables "lsample" and "rsample".
|
|
|
|
|
| |
Added assertions which ensure that there are no partial samples in the
source buffer.
|
|
|
|
|
|
| |
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.
|
|
Separate the resampling code from the rest of pcm_utils.c. Create two
sub-libraries: pcm_resample_libsamplerate.c and
pcm_resample_fallback.c.
|