output/pipewire: use MAX_CHANNELS, not SPA_AUDIO_MAX_CHANNELS

MPD supports only 8 channels, so MAX_CHANNELS is enough, the array
doens't need to be SPA_AUDIO_MAX_CHANNELS (which is 64).
This commit is contained in:
Max Kellermann 2021-10-21 20:00:33 +02:00
parent 866d147122
commit 0ba867ec16

View File

@ -292,7 +292,7 @@ PipeWireOutput::SetVolume(float _volume)
float newvol = _volume*_volume*_volume;
if (stream != nullptr && !restore_volume) {
float vol[SPA_AUDIO_MAX_CHANNELS];
float vol[MAX_CHANNELS];
for (unsigned i = 0; i < channels; i++)
vol[i] = newvol;