output/pulse: move variable declaration down
This commit is contained in:
parent
37a7ca7f14
commit
ac49043fbb
@ -545,7 +545,6 @@ pulse_output_open(AudioOutput *ao, AudioFormat &audio_format,
|
|||||||
Error &error)
|
Error &error)
|
||||||
{
|
{
|
||||||
PulseOutput *po = (PulseOutput *)ao;
|
PulseOutput *po = (PulseOutput *)ao;
|
||||||
pa_sample_spec ss;
|
|
||||||
|
|
||||||
assert(po->mainloop != nullptr);
|
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 */
|
we just force MPD to send us everything as 16 bit */
|
||||||
audio_format.format = SampleFormat::S16;
|
audio_format.format = SampleFormat::S16;
|
||||||
|
|
||||||
|
pa_sample_spec ss;
|
||||||
ss.format = PA_SAMPLE_S16NE;
|
ss.format = PA_SAMPLE_S16NE;
|
||||||
ss.rate = audio_format.sample_rate;
|
ss.rate = audio_format.sample_rate;
|
||||||
ss.channels = audio_format.channels;
|
ss.channels = audio_format.channels;
|
||||||
|
Loading…
Reference in New Issue
Block a user