From 9b72c7f662440844bf59521e124f59bcbddec4a5 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 13 Jan 2016 14:35:12 -0600 Subject: in tests' PulseAudio mock, add pa_context_get_sink_input_info_list() implementation --- tests/pa-mock.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests/pa-mock.cpp') 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(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 * *******************************/ -- cgit v1.2.3