Commit 15b67f20 authored by Max Kellermann's avatar Max Kellermann

output/pipewire: un-inline ParamChanged()

parent 0825179f
......@@ -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 */
......@@ -572,6 +567,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
{
auto *b = pw_stream_dequeue_buffer(stream);
......
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