aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_convert.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* pcm_convert: use GError for error handlingMax Kellermann2009-07-231-2/+11
| | | | | Don't abort the whole MPD process when the conversion fails. This has been a denial-of-service attack vector for years.
* pcm_convert: added pcm_convert_state.byteswap_bufferMax Kellermann2009-07-221-0/+3
| | | | | | Currently, byteswapping is performed on the format_buffer. This can go wrong when this buffer is used twice during one run. Add a separate buffer for swapping the byte order.
* all: Update copyright header.Avuton Olrich2009-03-131-3/+4
| | | | | | | | 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_dither: renamed struct pcm_dither_24 to struct pcm_ditherMax Kellermann2009-03-021-1/+1
| | | | | | There is nothing 24 bit specific in the pcm_dither_24 struct. Since we want to reuse the struct for 32 bit dithering, let's drop the "_24" suffix from the struct name.
* pcm: added API documentationMax Kellermann2009-02-211-0/+23
|
* pcm_convert: removed pcm_convert_size()Max Kellermann2009-02-171-3/+0
| | | | The function is unused, since we added the pcm_buffer library.
* pcm_convert: return PCM buffer from pcm_convert()Max Kellermann2009-01-171-5/+6
| | | | | | Removed yet another superfluous buffer layer: return the PCM buffer from pcm_convert() instead of copying PCM data into the caller-supplied buffer.
* pcm_channels: use pcm_bufferMax Kellermann2009-01-071-0/+3
| | | | Replace a "static" buffer with the PCM buffer library.
* pcm_format: use the pcm_buffer libraryMax Kellermann2009-01-071-0/+4
| | | | Replace a "static" buffer with the PCM buffer library.
* 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: pass void pointers to PCM functionsMax Kellermann2009-01-071-2/+2
| | | | | In generic PCM functions allowing all sample formats, pass a void pointer instead of a char pointer.
* pcm_utils: moved conversion code to pcm_convert.cMax Kellermann2009-01-071-0/+44
All what's left in pcm_utils.h is the pcm_range() utility function, which is only used internally by pcm_volume and pcm_mix.