Age | Commit message (Collapse) | Author |
|
The ones in std have overloads for const char/char.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
Found with modernize-raw-string-literal
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
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>
|
|
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>
|
|
Found with performance-move-const-arg
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
Found with bugprone-move-forwarding-reference
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
|
|
Prevents compiling those sources many times, once for each debug
program using it.
|
|
|
|
implementation"
This reverts commit c84bae739a29ec27790c5534b7fc777d6f40a02f. A
configuration option is not necessary, because the PcmConvert
constructor knows already whether integer or floating point is needed.
|
|
|
|
release v0.21.19
|
|
Remove the error message and instead erase the old setting if the
"repeatable" flag is not set.
https://github.com/MusicPlayerDaemon/MPD/issues/684
|
|
Why would anybody want to keep the silence inserted by the codec?
Other plugins/codecs (such as Vorbis) have this hard-coded as well.
|
|
|
|
|
|
|
|
|
|
linux/limits.h defines MAX_INPUT which breaks the build.
|
|
Supports suffixes such as "kB" and "MB".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. and not "UNIX domain socket. Be consistent about the naming.
|
|
|
|
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.
|
|
|
|
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!
|
|
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.
|
|
|
|
|
|
|
|
|
|
Eliminate yet another access to the global ConfigData instance.
|
|
Changed listen_add_config_param() to use generic address parsing
|
|
|
|
`AllocatedPath::FromUTF8Throw()` will never return a nulled instance.
|
|
|
|
|
|
|
|
|
|
This is an experimental draft. More needs to be done.
|
|
|
|
|
|
Remove another dependency on the config/Global library.
|
|
|
|
|