output/pipewire: un-inline ParamChanged()

This commit is contained in:
Max Kellermann 2021-10-21 18:06:53 +02:00
parent 0825179f00
commit 15b67f20e5

View File

@ -216,12 +216,7 @@ private:
o.ControlInfo(control);
}
void ParamChanged() noexcept {
if (restore_volume) {
SetVolume(volume);
restore_volume = false;
}
}
void ParamChanged(uint32_t id, const struct spa_pod *param) noexcept;
static void ParamChanged(void *data,
uint32_t id,
@ -231,7 +226,7 @@ private:
return;
auto &o = *(PipeWireOutput *)data;
o.ParamChanged();
o.ParamChanged(id, param);
}
/* virtual methods from class AudioOutput */
@ -571,6 +566,16 @@ PipeWireOutput::StateChanged(enum pw_stream_state state,
}
inline void
PipeWireOutput::ParamChanged([[maybe_unused]] uint32_t id,
[[maybe_unused]] const struct spa_pod *param) noexcept
{
if (restore_volume) {
SetVolume(volume);
restore_volume = false;
}
}
inline void
PipeWireOutput::Process() noexcept
{