aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_convert.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pcm_pack: pass an "end" pointer instead of a sample countMax Kellermann2011-10-101-1/+2
|
* pcm_convert: support reverse endian inputMax Kellermann2011-10-101-0/+14
|
* Merge commit 'release-0.16.5'Max Kellermann2011-10-091-1/+1
|\ | | | | | | | | | | Conflicts: NEWS configure.ac
| * pcm_convert: fix typo in error messageMax Kellermann2011-10-081-1/+1
| |
* | copyright year 2011Max Kellermann2011-01-291-1/+1
|/
* audio_format: support packed 24 bit samplesMax Kellermann2010-01-161-0/+48
|
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* audio_format: changed "bits" to "enum sample_format"Max Kellermann2009-12-021-18/+18
| | | | | | This patch prepares support for floating point samples (and probably other formats). It changes the meaning of the "bits" attribute from a bit count to a symbolic value.
* 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_convert: use GError for error handlingMax Kellermann2009-07-231-32/+77
| | | | | Don't abort the whole MPD process when the conversion fails. This has been a denial-of-service attack vector for years.
* pcm_byteswap: converted NULL checks to assertionsMax Kellermann2009-07-221-6/+3
| | | | | It is illegal to pass a NULL buffer to pcm_byteswap_X(). The result of this is that pcm_byteswap_X() never returns NULL.
* pcm_convert: added pcm_convert_state.byteswap_bufferMax Kellermann2009-07-221-3/+5
| | | | | | 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.
* Add reverse_endian field to struct audio_format and handle conversionDavid Woodhouse2009-07-191-0/+19
|
* pcm_convert: return NULL on failureMax Kellermann2009-03-141-1/+1
| | | | Changed "0" to "NULL".
* 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_convert: added 32 bit supportMax Kellermann2009-03-021-0/+42
| | | | | All PCM sub libraries have 32 bit support now. Add support to the glue function pcm_convert().
* pcm_convert: removed pcm_convert_size()Max Kellermann2009-02-171-17/+0
| | | | The function is unused, since we added the pcm_buffer library.
* pcm_convert: return PCM buffer from pcm_convert()Max Kellermann2009-01-171-29/+27
| | | | | | Removed yet another superfluous buffer layer: return the PCM buffer from pcm_convert() instead of copying PCM data into the caller-supplied buffer.
* log, pcm_convert: added return statements after g_error()Max Kellermann2009-01-151-0/+1
| | | | | gcc doesn't know that g_error() never returns. Work around the gcc warning.
* pcm_convert: removed unused variable "dest_size"Max Kellermann2009-01-151-4/+2
| | | | | dest_size is only used in an assertion. Remove its declaration and move the formula into the assertion.
* pcm_resample: use pcm_buffer (1/2)Max Kellermann2009-01-081-16/+14
| | | | Return a temporary buffer from pcm_resample_*() and pcm_convert().
* pcm_channels: use pcm_bufferMax Kellermann2009-01-071-2/+6
| | | | Replace a "static" buffer with the PCM buffer library.
* pcm_format: use the pcm_buffer libraryMax Kellermann2009-01-071-3/+8
| | | | Replace a "static" buffer with the PCM buffer library.
* 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: pass void pointers to PCM functionsMax Kellermann2009-01-071-5/+4
| | | | | 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/+157
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.