- 12 Mar, 2020 2 commits
-
-
Rosen Penev authored
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>
-
Rosen Penev authored
Introduced in C++17. It replaces gcc's warn_unused_result. Found with modernize-use-nodiscard. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 01 Feb, 2020 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Rosen Penev authored
Found with modernize-use-override Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 09 Dec, 2019 1 commit
-
-
Jacob Vosmaer authored
-
- 26 Aug, 2019 1 commit
-
-
Max Kellermann authored
-
- 30 Jul, 2019 1 commit
-
-
Max Kellermann authored
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
-
- 05 Jul, 2019 2 commits
-
-
Max Kellermann authored
Prepare for a new mode which may convert to a different sample format when applying volume, to reduce dithering.
-
Max Kellermann authored
-
- 17 Jun, 2019 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 04 Apr, 2019 2 commits
-
-
Max Kellermann authored
Let the constructor and destructor do this. This means that all users have to be converted to allocate PcmConvert dynamically.
-
Max Kellermann authored
-
- 24 Mar, 2019 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
The two were never used at the same time, and merging them saves one allocation.
-
Max Kellermann authored
This transfers ownership of the buffer instead of adding another reference.
-
Max Kellermann authored
Fix another memory leak. Closes https://github.com/MusicPlayerDaemon/MPD/issues/514
-
Max Kellermann authored
A newly allocated buffer doesn't need this call; it only adds overhead for copying the data.
-
Max Kellermann authored
av_frame_get_buffer() leaks memory if buffers were already allocated. Fixes one of the memory leaks of https://github.com/MusicPlayerDaemon/MPD/issues/514
-
- 18 Mar, 2019 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 12 Mar, 2019 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 19 Nov, 2018 1 commit
-
-
Max Kellermann authored
Since we switched from autotools to Meson in commit 94592c14, 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.
-
- 31 Oct, 2018 1 commit
-
-
Max Kellermann authored
-
- 14 Oct, 2018 1 commit
-
-
Max Kellermann authored
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!
-
- 20 Aug, 2018 1 commit
-
-
Max Kellermann authored
-
- 16 Jul, 2018 1 commit
-
-
Max Kellermann authored
-
- 09 Feb, 2018 2 commits
-
-
Max Kellermann authored
Fixes valgrind warning.
-
Max Kellermann authored
-
- 29 Jan, 2018 2 commits
-
-
Max Kellermann authored
Fixes another part of #208, the one which caused the bogus exception.
-
Max Kellermann authored
-
- 02 Jan, 2018 1 commit
-
-
Max Kellermann authored
Wired to Filter::Flush(). Closes #153
-