aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_resample.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pcm_{channels,resample}: pass channel count as integer, not uint8_tMax Kellermann2011-10-191-4/+4
| | | | Reduces number of implicit integer conversions.
* pcm_resample: one-time global initializationMax Kellermann2011-10-081-0/+3
| | | | | Load the samplerate_converter on MPD startup. Fail if the converter name is invalid.
* copyright year 2011Max Kellermann2011-01-291-1/+1
|
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* include config.h in all sourcesMax Kellermann2009-11-121-1/+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_convert: use GError for error handlingMax Kellermann2009-07-231-8/+8
| | | | | Don't abort the whole MPD process when the conversion fails. This has been a denial-of-service attack vector for years.
* 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-2/+29
| | | | | Resampling 32 bit samples is the same as resampling 24 bit samples - both are stored in the int32_t type.
* pcm: added API documentationMax Kellermann2009-02-211-0/+35
|
* pcm_resample: use pcm_buffer (2/2)Max Kellermann2009-01-081-2/+2
| | | | Use the PCM buffer library for the libsamplerate output buffer.
* pcm_resample: use pcm_buffer (1/2)Max Kellermann2009-01-081-11/+11
| | | | Return a temporary buffer from pcm_resample_*() and pcm_convert().
* pcm: added pcm_convert_deinit(), pcm_resample_deinit()Max Kellermann2009-01-071-0/+2
| | | | | Free memory allocated by libsamplerate when the output or the decoder is closed.
* pcm_resample: implemented 24 bit resamplingMax Kellermann2008-10-231-0/+8
| | | | | | | 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_utils: moved code to pcm_resample.cMax Kellermann2008-10-231-0/+63
Separate the resampling code from the rest of pcm_utils.c. Create two sub-libraries: pcm_resample_libsamplerate.c and pcm_resample_fallback.c.