music player daemon (fork)
Go to file
Max Kellermann af99f9fc90 pcm/Volume: convert S16 to S24 to preserve quality and reduce noise
Applying software volume to S16 samples means several bits of
precision are lost; at 25% volume, two bits are lost.  Additionally,
dithering adds some noise.

The problem gets worse when you apply the software volume code twice:
for the software mixer volume, and again for the replay gain.  This
loses some more precision and adds even more dithering noise, which
can become audible (see
https://github.com/MusicPlayerDaemon/MPD/issues/542).

By converting everything to 24 bit, we need to shift only two bits to
the right instead of ten, losing nearly no precision, and dithering is
not needed.  Even if the output device is unable to play S24 directly,
we can convert back to S16 with only one stage of dithering.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/542
2019-07-30 20:03:37 +02:00
.github/ISSUE_TEMPLATE .github: add issue templates 2019-05-20 16:44:02 +02:00
android Merge branch 'v0.21.x' 2019-07-29 11:32:00 +02:00
build build/pkg-config.sh: add comment 2019-02-22 12:39:59 +01:00
doc doc/user.rst: two more heading corrections 2019-06-27 14:55:53 +02:00
python/build python/build/libs.py: upgrade Boost to 1.70.0 2019-04-23 14:08:27 +02:00
src pcm/Volume: convert S16 to S24 to preserve quality and reduce noise 2019-07-30 20:03:37 +02:00
systemd systemd: add user socket unit 2019-04-10 16:37:13 +02:00
test pcm/Volume: convert S16 to S24 to preserve quality and reduce noise 2019-07-30 20:03:37 +02:00
win32 win32/res/meson.build: drop tilde suffix from version number before splitting 2019-03-18 09:58:40 +01:00
.gitignore remove some autotools remains 2018-11-02 18:55:49 +01:00
.travis.yml .travis.yml: switch to another PPA for a newer ninja version 2019-04-18 09:40:30 +02:00
AUTHORS Copyright year 2019 2019-06-17 11:17:30 +02:00
COPYING Update the text of the GPLv2, this fixes the address and a few other oddities. 2008-12-20 19:02:09 -08:00
meson_options.txt meson: add fixed-point Vorbis (Tremor) decoder support 2019-01-21 08:35:17 +01:00
meson.build increment version number to 0.21.12 2019-07-12 17:22:20 +02:00
mpd.svg import MPD SVG icon 2014-07-14 19:04:46 +02:00
NEWS pcm/Volume: convert S16 to S24 to preserve quality and reduce noise 2019-07-30 20:03:37 +02:00
README.md release v0.20.7 2017-05-15 23:01:49 +02:00
valgrind.suppressions valgrind.suppressions: add GObject/libgcrypt/libsmbclient suppressions 2019-02-05 22:53:02 +01:00

Music Player Daemon

http://www.musicpd.org

A daemon for playing music of various formats. Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved. Player control, info retrieval, and playlist management can all be managed remotely.

For basic installation instructions read the manual.

Users

Developers

Legal

MPD is released under the GNU General Public License version 2, which is distributed in the COPYING file.