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:
parent
866d147122
commit
0ba867ec16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user