diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-04-16 15:23:46 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-04-18 01:42:17 +0200 |
commit | 176046d2b59c2042cd35a58848d4964563287f63 (patch) | |
tree | 1bade4105edf75964d39a89348369cb3a7891a52 /libavdevice/pulse_audio_common.h | |
parent | 24e5f5cd3ec779c7d9ab9248762605099017975d (diff) | |
download | ffmpeg-176046d2b59c2042cd35a58848d4964563287f63.tar.gz |
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.h | 5 |
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 */ |