Skip to content

Commit

Permalink
[ci] Fix for older pipewire versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 28, 2024
1 parent 20fe26d commit 2ffb761
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions src/ossia/audio/pipewire_protocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@ struct pipewire_context
.bound_id = {},
.add_mem = {},
.remove_mem = {},
#if defined(PW_CORE_EVENT_BOUND_PROPS)
.bound_props = {},
#endif
};

spa_zero(core_listener);
Expand Down Expand Up @@ -541,16 +543,20 @@ class pipewire_audio_protocol : public audio_engine
{
auto& pw = libpipewire::instance();

static constexpr const struct pw_filter_events filter_events
= {.version = PW_VERSION_FILTER_EVENTS,
.destroy = {},
.state_changed = {},
.io_changed = {},
.param_changed = {},
.add_buffer = {},
.remove_buffer = {},
.process = on_process,
.drained = {}};
static constexpr const struct pw_filter_events filter_events = {
.version = PW_VERSION_FILTER_EVENTS,
.destroy = {},
.state_changed = {},
.io_changed = {},
.param_changed = {},
.add_buffer = {},
.remove_buffer = {},
.process = on_process,
.drained = {},
#if PW_VERSION_CORE > 3
.command = {},
#endif
};

this->loop = loop;

Expand Down

0 comments on commit 2ffb761

Please sign in to comment.