1 /**
2  * \file vlcpulse.h
3  * \brief PulseAudio support library for LibVLC plugins
4  */
5 /****************************************************************************
6  * Copyright (C) 2011 Rémi Denis-Courmont
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21  *****************************************************************************/
22 
23 #ifndef VLCPULSE_H
24 # define VLCPULSE_H 1
25 # ifdef __cplusplus
26 extern "C" {
27 # endif
28 
29 VLC_API pa_context *vlc_pa_connect (vlc_object_t *obj,
30                                     pa_threaded_mainloop **);
31 VLC_API void vlc_pa_disconnect (vlc_object_t *obj, pa_context *ctx,
32                                 pa_threaded_mainloop *);
33 
34 VLC_API void vlc_pa_error (vlc_object_t *, const char *msg, pa_context *);
35 #define vlc_pa_error(o, m, c) vlc_pa_error(VLC_OBJECT(o), m, c)
36 
37 VLC_API mtime_t vlc_pa_get_latency (vlc_object_t *, pa_context *, pa_stream *);
38 #define vlc_pa_get_latency(o, c, s) vlc_pa_get_latency(VLC_OBJECT(o), c, s)
39 
40 VLC_API void vlc_pa_rttime_free (pa_threaded_mainloop *, pa_time_event *);
41 
42 # ifdef __cplusplus
43 }
44 # endif
45 #endif
46