From c426c702df2314937ecf6d7e397da0fe162e4292 Mon Sep 17 00:00:00 2001 From: wxf Date: Thu, 1 Jul 2021 22:05:47 +0800 Subject: [PATCH] Fix error: cannot bind packed field to T& --- player/AudioSRC.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/player/AudioSRC.cpp b/player/AudioSRC.cpp index 2dca791c..2e616612 100644 --- a/player/AudioSRC.cpp +++ b/player/AudioSRC.cpp @@ -30,12 +30,12 @@ void AudioSRC::setOutputAudioConfig(const SDL_AudioSpec &cfg) { } InfoL << "audio cvt origin format, freq:" << freq << ", format:" << hex << format << dec << ", channels:" << channels; InfoL << "audio cvt info, " - << "needed:" << _audio_cvt.needed - << ", src_format:" << hex << _audio_cvt.src_format - << ", dst_format:" << _audio_cvt.dst_format << dec - << ", rate_incr:" << _audio_cvt.rate_incr - << ", len_mult:" << _audio_cvt.len_mult - << ", len_ratio:" << _audio_cvt.len_ratio; + << "needed:" << (int)_audio_cvt.needed + << ", src_format:" << hex << (SDL_AudioFormat)_audio_cvt.src_format + << ", dst_format:" << (SDL_AudioFormat)_audio_cvt.dst_format << dec + << ", rate_incr:" << (double)_audio_cvt.rate_incr + << ", len_mult:" << (int)_audio_cvt.len_mult + << ", len_ratio:" << (double)_audio_cvt.len_ratio; } void AudioSRC::setEnableMix(bool flag) {