aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_format.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-12-02audio_format: changed "bits" to "enum sample_format"Max Kellermann1-18/+27
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.
2009-11-12include config.h in all sourcesMax Kellermann1-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.
2009-07-23pcm_convert: use GError for error handlingMax Kellermann1-5/+0
Don't abort the whole MPD process when the conversion fails. This has been a denial-of-service attack vector for years.
2009-03-13all: Update copyright header.Avuton Olrich1-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.
2009-03-02pcm_format: added conversion from 32 bitMax Kellermann1-0/+37
Support converting 32 bit samples to any other supported sample format.
2009-03-02pcm_format: added pcm_convert_to_32()Max Kellermann1-0/+75
Added code to convert all other sample formats to 32 bit.
2009-03-02pcm_dither: renamed struct pcm_dither_24 to struct pcm_ditherMax Kellermann1-2/+2
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.
2009-01-07pcm_format: use the pcm_buffer libraryMax Kellermann1-36/+23
Replace a "static" buffer with the PCM buffer library.
2009-01-07pcm_format: pass struct pcm_dither_24 to pcm_convert_to_16()Max Kellermann1-3/+3
The function does not need the full pcm_convert_state struct.
2009-01-07pcm_utils: moved code to pcm_format.cMax Kellermann1-0/+148
Moved all code which converts the sample format to a separate library.