aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/Volume.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-17pcm/Volume: make DSD a no-opMax Kellermann1-2/+8
Kludge to work around DSD playback failure because the ReplayGainFilterPlugin is always in the filter chain.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-07pcm/Volume: use number of samples instead of end pointerMax Kellermann1-25/+19
2013-12-28pcm/Volume: improved ditheringMax Kellermann1-20/+27
Instead of just adding a rectangular random value before shifting back to the normal scale, use the existing PcmDither library.
2013-12-28pcm/Volume: remove optimized i386 assemblyMax Kellermann1-50/+0
This code is unable to dither. Until we implement that, let's remove the code for now. i386 isn't relevant anymore anyway.
2013-12-23pcm/Volume: convert to classMax Kellermann1-29/+58
Prepare for adding state.
2013-12-23pcm/Volume: apply volume into destination bufferMax Kellermann1-21/+37
2013-12-23pcm/Volume: convert i386 code to template specializationMax Kellermann1-42/+42
2013-12-23pcm/Volume: move code to template pcm_volume_sample()Max Kellermann1-7/+16
2013-12-23pcm/PcmVolume: rename to Volume.cxxMax Kellermann1-1/+1
2013-12-22pcm/Volume: add constant PCM_VOLUME_BITSMax Kellermann1-1/+1
2013-12-22pcm/Volume: make PCM_VOLUME_1 a "constexpr"Max Kellermann1-3/+3
2013-12-02pcm/PcmUtils: use the SampleTraits libraryMax Kellermann1-3/+1
2013-12-02pcm/PcmVolume: use the SampleTraits libraryMax Kellermann1-30/+22
2013-10-30*: update copyright year to 2013Max Kellermann1-1/+1
2013-10-15Client, ...: remove unnecessary glib.h includeMax Kellermann1-2/+0
2013-10-02Log: new logging library APIMax Kellermann1-3/+0
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-08-04*: use gcc.h macros instead of GLibMax Kellermann1-1/+1
2013-08-03audio_format: convert to C++Max Kellermann1-9/+9
2013-08-03gcc.h: add macro gcc_unreachable()Max Kellermann1-2/+1
2013-04-09pcm_*: move to src/pcm/Max Kellermann1-0/+0
2013-02-01PcmUtils: remove pcm_range(), use PcmClamp() insteadMax Kellermann1-4/+4
2013-01-31pcm_*: convert to C++Max Kellermann1-7/+11
2012-03-27audio_format: remove SAMPLE_FORMAT_DSD_OVER_USBMax Kellermann1-1/+0
DSD-over-USB should not be a MPD core format, because it is not a "natural" format; it is just a temnporary over-the-wire format. This format has been implemented in pcm_export, and does not need to be supported by pcm_convert.
2012-03-22audio_format: remove the packed S24 formatMax Kellermann1-1/+0
For simplicity, the MPD core should not have to deal with packing. It is rarely used, and those plugins that need it should use the pcm_export library instead.
2012-03-21audio_format: remove the format SAMPLE_FORMAT_DSD_LSBFIRSTMax Kellermann1-1/+0
This format is unused since the DSDIFF decoder plugin now reverses the bit order.
2012-03-19audio_format: basic support for DSD-over-USBMax Kellermann1-0/+1
2012-03-01audio_format: add DSD sample formatMax Kellermann1-0/+2
Basic support for Direct Stream Digital. No conversion yet, and no decoder/output plugin support.
2011-10-20pcm_volume: implement float samplesMax Kellermann1-2/+13
2011-10-20audio_format: basic support for floating point samplesMax Kellermann1-0/+4
Support for conversion from float to 16, 24 and 32 bit integer samples.
2011-10-20pcm_volume: pass an "end" pointer instead of a sample countMax Kellermann1-20/+13
2011-10-20pcm_volume: remove "default" statementMax Kellermann1-3/+9
Don't suppress gcc warnings.
2011-10-20pcm_volume: "length" is a "size_t", not "int"Max Kellermann1-1/+1
2011-10-10pcm_{mix,volume}: pass only sample_format to pcm_mix()Max Kellermann1-2/+2
The other audio_format attributes are not used.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-03pcm_volume: change old code to use format instead of bitsViliam Mateicka1-1/+1
2009-12-02audio_format: changed "bits" to "enum sample_format"Max Kellermann1-4/+4
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-19pcm_volume: implemented 32 bit supportMax Kellermann1-0/+28
Support 32 bit samples with software mixer.
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-03-14pcm_volume: use #ifdef instead of #if __i386__Max Kellermann1-2/+2
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-02fixing unused parameter warningViliam Mateicka1-1/+1
2009-03-02pcm_volume: return boolMax Kellermann1-8/+7
Don't abort MPD when a sample format is not supported by pcm_volume().
2009-03-01pcm_volume: no CamelCaseMax Kellermann1-5/+5
2009-02-18pcm_volume: optimized pcm_volume_change_24() on i386Max Kellermann1-1/+40
Added an inline assembly function for the 64 bit multiplication. Benchmark results on a Pentium II 266 MHz, 512 MB of 24 bit PCM data: dd if=/dev/zero bs=64k count=8k | time ./test/software_volume 48000:24:2 >/dev/null Before this patch 22.94s, after this patch 7.24s.
2009-01-07pcm: pass void pointers to PCM functionsMax Kellermann1-1/+1
In generic PCM functions allowing all sample formats, pass a void pointer instead of a char pointer.
2009-01-07pcm_volume: rename pcm_dither() to pcm_volume_dither()Max Kellermann1-3/+6
2009-01-07pcm_utils: moved code to pcm_volume.cMax Kellermann1-0/+105
Moved the software volume code to a separate library.