aboutsummaryrefslogtreecommitdiff
path: root/libavdevice/pulse_audio_common.h
diff options
context:
space:
mode:
authorLukasz Marek2014-04-16 15:23:46 +0200
committerLukasz Marek2014-04-18 01:42:17 +0200
commit176046d2b59c2042cd35a58848d4964563287f63 (patch)
tree1bade4105edf75964d39a89348369cb3a7891a52 /libavdevice/pulse_audio_common.h
parent24e5f5cd3ec779c7d9ab9248762605099017975d (diff)
lavd/pulse_audio_common: add context helper functions
Functions allow to connect and disconnect from server. Helpfull to implement utility functions with nested loops. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavdevice/pulse_audio_common.h')
-rw-r--r--libavdevice/pulse_audio_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavdevice/pulse_audio_common.h b/libavdevice/pulse_audio_common.h
index b049cdea1a..02534f79a1 100644
--- a/libavdevice/pulse_audio_common.h
+++ b/libavdevice/pulse_audio_common.h
@@ -30,4 +30,9 @@ pa_sample_format_t ff_codec_id_to_pulse_format(enum AVCodecID codec_id);
int ff_pulse_audio_get_devices(AVDeviceInfoList *devices, const char *server, int output);
+int ff_pulse_audio_connect_context(pa_mainloop **pa_ml, pa_context **pa_ctx,
+ const char *server, const char *description);
+
+void ff_pulse_audio_disconnect_context(pa_mainloop **pa_ml, pa_context **pa_ctx);
+
#endif /* AVDEVICE_PULSE_AUDIO_COMMON_H */