diff options
Diffstat (limited to 'tests/pa-mock.cpp')
-rw-r--r-- | tests/pa-mock.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/pa-mock.cpp b/tests/pa-mock.cpp index 5dd5c9b..7e7b70c 100644 --- a/tests/pa-mock.cpp +++ b/tests/pa-mock.cpp @@ -351,6 +351,25 @@ pa_context_set_source_volume_by_name (pa_context *c, const char * name, const pa return dummy_operation(); } +pa_operation* +pa_context_get_sink_input_info_list(pa_context *c, pa_sink_input_info_cb_t cb, void *userdata) +{ + reinterpret_cast<PAMockContext*>(c)->idleOnce( + [c, cb, userdata]() { + + pa_sink_input_info sink_input; + sink_input.name = "default-sink-input"; + sink_input.proplist = nullptr; + sink_input.has_volume = false; + + if (cb != nullptr) + cb(c, &sink_input, true, userdata); + }); + + return dummy_operation(); +} + + /* ******************************* * subscribe.h * *******************************/ |