Commit 192ad910 authored by Max Kellermann's avatar Max Kellermann

Merge tag 'v0.21.13'

release v0.21.13
parents 91fb91d8 d4d2bc07
...@@ -19,6 +19,14 @@ ver 0.22 (not yet released) ...@@ -19,6 +19,14 @@ ver 0.22 (not yet released)
* switch to C++17 * switch to C++17
- GCC 7 or clang 4 (or newer) recommended - GCC 7 or clang 4 (or newer) recommended
ver 0.21.13 (2019/08/06)
* input
- cdio_paranoia: require libcdio-paranoia 10.2+0.93+1
* decoder
- mad: fix crackling sound (0.21.12 regression)
* output
- jack: improved Windows compatibility
ver 0.21.12 (2019/08/03) ver 0.21.12 (2019/08/03)
* decoder * decoder
- mad: update bit rate after seeking - mad: update bit rate after seeking
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.musicpd" package="org.musicpd"
android:installLocation="auto" android:installLocation="auto"
android:versionCode="35" android:versionCode="36"
android:versionName="0.21.12"> android:versionName="0.21.13">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26"/> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26"/>
......
...@@ -79,12 +79,14 @@ static inline int32_t ...@@ -79,12 +79,14 @@ static inline int32_t
mad_fixed_to_24_sample(mad_fixed_t sample) noexcept mad_fixed_to_24_sample(mad_fixed_t sample) noexcept
{ {
static constexpr unsigned bits = 24; static constexpr unsigned bits = 24;
static constexpr mad_fixed_t MIN = -MAD_F_ONE;
static constexpr mad_fixed_t MAX = MAD_F_ONE - 1;
/* round */ /* round */
sample = sample + (1L << (MAD_F_FRACBITS - bits)); sample = sample + (1L << (MAD_F_FRACBITS - bits));
/* quantize */ /* quantize */
return Clamp(sample, MAD_F_MIN, MAD_F_MAX) return Clamp(sample, MIN, MAX)
>> (MAD_F_FRACBITS + 1 - bits); >> (MAD_F_FRACBITS + 1 - bits);
} }
......
...@@ -299,11 +299,7 @@ CdioParanoiaInputStream::Read(std::unique_lock<Mutex> &, ...@@ -299,11 +299,7 @@ CdioParanoiaInputStream::Read(std::unique_lock<Mutex> &,
if (s_err) { if (s_err) {
FormatError(cdio_domain, FormatError(cdio_domain,
"paranoia_read: %s", s_err); "paranoia_read: %s", s_err);
#if LIBCDIO_VERSION_NUM >= 90
cdio_cddap_free_messages(s_err); cdio_cddap_free_messages(s_err);
#else
free(s_err);
#endif
} }
throw; throw;
......
...@@ -6,7 +6,7 @@ if alsa_dep.found() ...@@ -6,7 +6,7 @@ if alsa_dep.found()
input_plugins_sources += 'AlsaInputPlugin.cxx' input_plugins_sources += 'AlsaInputPlugin.cxx'
endif endif
libcdio_paranoia_dep = dependency('libcdio_paranoia', version: '>= 0.4', required: get_option('cdio_paranoia')) libcdio_paranoia_dep = dependency('libcdio_paranoia', version: '>= 10.2+0.93+1', required: get_option('cdio_paranoia'))
conf.set('ENABLE_CDIO_PARANOIA', libcdio_paranoia_dep.found()) conf.set('ENABLE_CDIO_PARANOIA', libcdio_paranoia_dep.found())
if libcdio_paranoia_dep.found() if libcdio_paranoia_dep.found()
input_plugins_sources += 'CdioParanoiaInputPlugin.cxx' input_plugins_sources += 'CdioParanoiaInputPlugin.cxx'
......
...@@ -34,11 +34,7 @@ ...@@ -34,11 +34,7 @@
#include "util/Compiler.h" #include "util/Compiler.h"
#include <cdio/version.h> #include <cdio/version.h>
#if LIBCDIO_VERSION_NUM >= 90
#include <cdio/paranoia/paranoia.h> #include <cdio/paranoia/paranoia.h>
#else
#include <cdio/paranoia.h>
#endif
#include <stdexcept> #include <stdexcept>
#include <utility> #include <utility>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment