From e7b47ce3359e1a51e481defba3294f78042c4c25 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Oct 2017 08:17:21 +0200 Subject: [PATCH] output/alsa: in_frame_size is a debug-only variable --- src/output/plugins/AlsaOutputPlugin.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 60c738466..8df6e0f79 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -90,10 +90,12 @@ class AlsaOutput final /** the libasound PCM device handle */ snd_pcm_t *pcm; +#ifndef NDEBUG /** * The size of one audio frame passed to method play(). */ size_t in_frame_size; +#endif /** * The size of one audio frame passed to libasound. @@ -1044,7 +1046,9 @@ AlsaOutput::Open(AudioFormat &audio_format) audio_format.channels, params); +#ifndef NDEBUG in_frame_size = audio_format.GetFrameSize(); +#endif out_frame_size = pcm_export->GetFrameSize(audio_format); drain = false;