From ac49043fbb4572f1262fea594bbd922b58b1863c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Aug 2016 10:02:22 +0200 Subject: [PATCH] output/pulse: move variable declaration down --- src/output/plugins/PulseOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/PulseOutputPlugin.cxx b/src/output/plugins/PulseOutputPlugin.cxx index 120bad090..a9a84bc24 100644 --- a/src/output/plugins/PulseOutputPlugin.cxx +++ b/src/output/plugins/PulseOutputPlugin.cxx @@ -545,7 +545,6 @@ pulse_output_open(AudioOutput *ao, AudioFormat &audio_format, Error &error) { PulseOutput *po = (PulseOutput *)ao; - pa_sample_spec ss; assert(po->mainloop != nullptr); @@ -579,6 +578,7 @@ pulse_output_open(AudioOutput *ao, AudioFormat &audio_format, we just force MPD to send us everything as 16 bit */ audio_format.format = SampleFormat::S16; + pa_sample_spec ss; ss.format = PA_SAMPLE_S16NE; ss.rate = audio_format.sample_rate; ss.channels = audio_format.channels;