summaryrefslogtreecommitdiff
path: root/src/config
AgeCommit message (Collapse)Author
2021-01-01copyright year 2021Max Kellermann
2020-10-08config/Data: cast to std::chrono::steady_clock::duration properlyMax Kellermann
Oh no, 3413d1bf23a was broken! Instead of passing a number as "seconds" to the duration constructor, it just abused the duration constructor as cast operator, which caused custom state_file_interval settings to be extremely short.
2020-10-08config/Parser: use std::size_tMax Kellermann
2020-10-08config/{Data,Block}: use With() in GetUnsigned(), GetPositive()Max Kellermann
2020-05-30use std chr functionsRosen Penev
The ones in std have overloads for const char/char. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-22[clang-tidy] use raw stringRosen Penev
Found with modernize-raw-string-literal Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12replace stddef.h with cstddefRosen Penev
The former is deprecated with C++14. The standard says both are the same: The contents and meaning of the header<cstddef>are the same as the C standard library header<stddef.h>,except that it does not declare the type wchar_t, that it also declares the type byte and its associated operations (21.2.5), and as noted in 21.2.3 and 21.2.4. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12replace assert.h with cassertRosen Penev
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-20[clang-tidy] remove needless std::moveRosen Penev
Found with performance-move-const-arg Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-04[clang-tidy] use forward instead of moveRosen Penev
Found with bugprone-move-forwarding-reference Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-01*: use `auto`Max Kellermann
2020-01-18meson.build: move Log.cxx and LogBackend.cxx into a static libraryMax Kellermann
Prevents compiling those sources many times, once for each debug program using it.
2020-01-18copyright year 2020Max Kellermann
2020-01-17Revert "pcm/Convert: add option to enable the integer-only dsd2pcm ↵Max Kellermann
implementation" This reverts commit c84bae739a29ec27790c5534b7fc777d6f40a02f. A configuration option is not necessary, because the PcmConvert constructor knows already whether integer or floating point is needed.
2020-01-17pcm/Convert: add option to enable the integer-only dsd2pcm implementationMax Kellermann
2020-01-17Merge tag 'v0.21.19'Max Kellermann
release v0.21.19
2020-01-17config/File: allow overriding top-level settings in includesMax Kellermann
Remove the error message and instead erase the old setting if the "repeatable" flag is not set. https://github.com/MusicPlayerDaemon/MPD/issues/684
2019-08-12decoder/mad: remove option "gapless", always do gaplessMax Kellermann
Why would anybody want to keep the silence inserted by the codec? Other plugins/codecs (such as Vorbis) have this hard-coded as well.
2019-08-03util/Macros: replace with std::size() (C++17)Max Kellermann
2019-07-05include cleanups (powered by iwyu)Max Kellermann
2019-06-17Copyright year 2019Max Kellermann
2019-05-31input/cache: first draft of the file cacheMax Kellermann
2019-05-30config/Parser: work around conflicting macro MAX_INPUTMax Kellermann
linux/limits.h defines MAX_INPUT which breaks the build.
2019-05-29config/Parser: add ParseSize()Max Kellermann
Supports suffixes such as "kB" and "MB".
2019-05-29config/Parser: get_bool() throws on errorMax Kellermann
2019-05-29config/Block: add method With()Max Kellermann
2019-05-29config/Block: add ThrowWithNested()Max Kellermann
2019-05-29config/Param: add method With()Max Kellermann
2019-05-29config/Param: add method ThrowWithNested()Max Kellermann
2019-03-20event/ServerSocket: runtime error if abstract sockets are unavailableMax Kellermann
2019-03-20event/ServerSocket, doc, ...: refer to AF_LOCAL as "local socket"Max Kellermann
.. and not "UNIX domain socket. Be consistent about the naming.
2019-02-25event/ServerSocket, config/Net: abstract socket supportMax Kellermann
2018-11-19check.h: remove obsolete headerMax Kellermann
Since we switched from autotools to Meson in commit 94592c14062d5afc9482d11baa401648082022c0, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.
2018-10-31*: copyright year 2018Max Kellermann
2018-10-14build with Meson instead of autotoolsMax Kellermann
So long, autotools! This is my last MPD related project to migrate away from it. It has its strengths, but also very obvious weaknesses and weirdnesses. Today, many of its quirks are not needed anymore, and are cumbersome and slow. Now welcome our new Meson overlords!
2018-09-23player/Thread: calculate `buffered_before_play` based on a fixed durationMax Kellermann
Previously, there was the setting `buffered_before_play` which specified a percentage of the audio buffer, defaulting to `10%`. That was working well enough for quite some time, until high-quality audio formats became common. At 44.1 kHz, 16 bit stereo, MPD collected 2.3 seconds worth of data in the buffer before starting playback. With the same default settings and 192 kHz, 24 bit stereo, that was only 0.27 seconds. Making this depend on the byte size only leads to high latency at low quality, and too little data at high quality. The natural choice would be to use a duration instead of a byte size, which should give the same good experience with all audio formats. Since the `buffered_before_play` configuration setting was not understood well by users and caused more harm than good, this commit deprecates it. It has now no effect.
2018-09-23config/File: print warning about deprecated optionsMax Kellermann
2018-08-20Compiler.h: move to util/Max Kellermann
2018-08-19config/Global: remove obsolete libraryMax Kellermann
2018-08-19config/Global: move config_global_check() to Check.cxxMax Kellermann
2018-08-19config/Path: add InitPathParser()Max Kellermann
Eliminate yet another access to the global ConfigData instance.
2018-08-07Added a function for generic address parsing1848
Changed listen_add_config_param() to use generic address parsing
2018-08-02config/Path: simplify expressionMax Kellermann
2018-08-02config/Path: remove unnecessary IsNull() checkMax Kellermann
`AllocatedPath::FromUTF8Throw()` will never return a nulled instance.
2018-07-18config/File: support wildcards in "include"Max Kellermann
2018-07-18config/File: add directive "include_optional"Max Kellermann
2018-07-18config/File: support absolute paths in "include"Max Kellermann
2018-07-18config/File: fix typo in commentMax Kellermann
2018-07-18config/File: implement the "include" directiveMax Kellermann
This is an experimental draft. More needs to be done.
2018-07-18config/Data: pass new items by rvalue referenceMax Kellermann