music player daemon (fork)
Go to file
Max Kellermann 691b6a236e output/osx: improve sample rate selection
The formula in osx_output_score_sample_rate() to detect multiples of
the source sample rate was broken: when given a 44.1 kHz input file,
it preferred 16 kHz over 48 kHz, because its `frac_portion(16)=0.75`
is smaller than `frac_portion(48)=0.91`.

That formula, introduced by commit 40a1ebee29, looks completely
wrong.  It doesn't do what the code comment pretends it does.

Instead of using that `frac_portion` to calculate a score, this patch
adds to the score only if `frac_portion` is nearly `0` or `1`.  This
means that the factor is nearly integer.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/904
2020-07-01 17:38:08 +02:00
android increment version number to 0.21.25 2020-06-11 06:29:08 +02:00
build build/pkg-config.sh: add comment 2019-02-22 12:39:59 +01:00
doc increment version number to 0.21.25 2020-06-11 06:29:08 +02:00
python/build python/build/meson.py: set BOOST_ROOT for Meson 0.54 2020-07-01 16:55:28 +02:00
src output/osx: improve sample rate selection 2020-07-01 17:38:08 +02:00
systemd systemd: add user socket unit 2019-04-10 16:37:13 +02:00
test test/meson.build: work around linker failure due to statically linked CURL 2020-04-02 17:16:05 +02:00
win32 {android,win32}/build.py: enable the GME decoder plugin 2020-06-10 21:33:29 +02:00
.gitignore .gitignore: add emacs lsp-mode files 2020-05-26 21:07:56 +02:00
.travis.yml .travis.yml: disable zzip on OS X to fix Travis-CI build failure 2020-05-27 15:31:34 +02:00
AUTHORS AUTHORS: add 0.21 contributors 2018-10-31 17:59:54 +01: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.25 2020-06-11 06:29:08 +02:00
mpd.svg import MPD SVG icon 2014-07-14 19:04:46 +02:00
NEWS output/osx: improve sample rate selection 2020-07-01 17:38:08 +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.