summaryrefslogtreecommitdiffstats
path: root/src/sources
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2021-06-16 09:24:36 +0200
committerUwe Klotz <uklotz@mixxx.org>2021-06-16 09:26:08 +0200
commit6bae4a9a8716b649067a68257a055920545c55b3 (patch)
tree5c4b40e816577d88ca88612b12317d6577900fe7 /src/sources
parent404fa1a5e844e09ae91358358b52f76c2a4ed40b (diff)
SoundSourceMp3: Fix armv7hl build on gcc 11.1
Diffstat (limited to 'src/sources')
-rw-r--r--src/sources/soundsourcemp3.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sources/soundsourcemp3.cpp b/src/sources/soundsourcemp3.cpp
index 1cee11d94d..844c2d6fd4 100644
--- a/src/sources/soundsourcemp3.cpp
+++ b/src/sources/soundsourcemp3.cpp
@@ -684,7 +684,8 @@ ReadableSampleFrames SoundSourceMp3::readSampleFramesClamped(
DEBUG_ASSERT(isStreamValid(m_madStream));
#ifndef QT_NO_DEBUG_OUTPUT
- const SINT madFrameChannelCount = MAD_NCHANNELS(&m_madFrame.header);
+ const auto madFrameChannelCount =
+ mixxx::audio::ChannelCount{MAD_NCHANNELS(&m_madFrame.header)};
if (madFrameChannelCount != getSignalInfo().getChannelCount()) {
kLogger.warning() << "MP3 frame header with mismatching number of channels"
<< madFrameChannelCount << "<>" << getSignalInfo().getChannelCount()
@@ -696,7 +697,8 @@ ReadableSampleFrames SoundSourceMp3::readSampleFramesClamped(
// Once decoded the frame is synthesized to PCM samples
mad_synth_frame(&m_madSynth, &m_madFrame);
#ifndef QT_NO_DEBUG_OUTPUT
- const SINT madSynthSampleRate = m_madSynth.pcm.samplerate;
+ const auto madSynthSampleRate =
+ mixxx::audio::SampleRate{m_madSynth.pcm.samplerate};
if (madSynthSampleRate != getSignalInfo().getSampleRate()) {
kLogger.warning() << "Reading MP3 data with different sample rate"
<< madSynthSampleRate << "<>" << getSignalInfo().getSampleRate()