Commit 0ba867ec authored by Max Kellermann's avatar Max Kellermann

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).
parent 866d1471
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment