aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_resample_fallback.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* include config.h in all sourcesMax Kellermann2009-11-121-0/+1
| | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* pcm_resample_fallback: don't include glib.hMax Kellermann2009-07-221-1/+0
| | | | This library does not use GLib directly.
* pcm_resample_fallback: removed G_GNUC_UNUSED attributeMax Kellermann2009-07-221-2/+1
|
* pcm_resample: renamed implementation functionsMax Kellermann2009-03-141-14/+16
| | | | | | Added diversion functions to pcm_resample.c. These check which resampler is enabled at compile time (libsamplerate or fallback). This prepares the following patch.
* all: Update copyright header.Avuton Olrich2009-03-131-7/+7
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* pcm_resample: use 24 bit resampling code for 32 bit samplesMax Kellermann2009-03-021-1/+1
| | | | | Resampling 32 bit samples is the same as resampling 24 bit samples - both are stored in the int32_t type.
* pcm_resample_fallback: corrected the sample calculationMax Kellermann2009-01-161-6/+8
| | | | | Due to rounding errors, it was possible that the fallback resampler returned partial frames.
* pcm_resample: use pcm_buffer (1/2)Max Kellermann2009-01-081-16/+27
| | | | Return a temporary buffer from pcm_resample_*() and pcm_convert().
* pcm: added pcm_convert_deinit(), pcm_resample_deinit()Max Kellermann2009-01-071-0/+5
| | | | | Free memory allocated by libsamplerate when the output or the decoder is closed.
* pcm_resample_fallback.c: replaced mpd_unused by G_GNUC_UNUSEDThomas Jansen2008-11-241-5/+5
|
* pcm_resample: implemented 24 bit resamplingMax Kellermann2008-10-231-0/+33
| | | | | | | 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: eliminated "sample" local variablesMax Kellermann2008-10-231-9/+3
| | | | | Copy from source to destination buffer directly, don't use the temporary variables "lsample" and "rsample".
* pcm_resample: don't resample partial samplesMax Kellermann2008-10-231-0/+5
| | | | | Added assertions which ensure that there are no partial samples in the source buffer.
* pcm_resample: don't hard-code sample sizeMax Kellermann2008-10-231-1/+1
| | | | | | 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-231-0/+61
Separate the resampling code from the rest of pcm_utils.c. Create two sub-libraries: pcm_resample_libsamplerate.c and pcm_resample_fallback.c.