]> code.delx.au - pulseaudio/blob - src/pulse/pulseaudio.h
Merge dead branch 'lennart'
[pulseaudio] / src / pulse / pulseaudio.h
1 #ifndef foopulseaudiohfoo
2 #define foopulseaudiohfoo
3
4 /***
5 This file is part of PulseAudio.
6
7 Copyright 2004-2006 Lennart Poettering
8 Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
9
10 PulseAudio is free software; you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as
12 published by the Free Software Foundation; either version 2.1 of the
13 License, or (at your option) any later version.
14
15 PulseAudio is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public
21 License along with PulseAudio; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 USA.
24 ***/
25
26 #include <pulse/mainloop-api.h>
27 #include <pulse/sample.h>
28 #include <pulse/def.h>
29 #include <pulse/context.h>
30 #include <pulse/stream.h>
31 #include <pulse/introspect.h>
32 #include <pulse/subscribe.h>
33 #include <pulse/scache.h>
34 #include <pulse/version.h>
35 #include <pulse/error.h>
36 #include <pulse/operation.h>
37 #include <pulse/channelmap.h>
38 #include <pulse/volume.h>
39 #include <pulse/xmalloc.h>
40 #include <pulse/utf8.h>
41 #include <pulse/thread-mainloop.h>
42 #include <pulse/mainloop.h>
43 #include <pulse/mainloop-signal.h>
44 #include <pulse/util.h>
45 #include <pulse/timeval.h>
46
47 /** \file
48 * Include all libpulse header files at once. The following
49 * files are included: \ref mainloop-api.h, \ref sample.h, \ref def.h,
50 * \ref context.h, \ref stream.h, \ref introspect.h, \ref subscribe.h,
51 * \ref scache.h, \ref version.h, \ref error.h, \ref channelmap.h,
52 * \ref operation.h,\ref volume.h, \ref xmalloc.h, \ref utf8.h, \ref
53 * thread-mainloop.h, \ref mainloop.h, \ref util.h, \ref timeval.h and
54 * \ref mainloop-signal.h at once */
55
56 /** \mainpage
57 *
58 * \section intro_sec Introduction
59 *
60 * This document describes the client API for the PulseAudio sound
61 * server. The API comes in two flavours to accomodate different styles
62 * of applications and different needs in complexity:
63 *
64 * \li The complete but somewhat complicated to use asynchronous API
65 * \li The simplified, easy to use, but limited synchronous API
66 *
67 * All strings in PulseAudio are in the UTF-8 encoding, regardless of current
68 * locale. Some functions will filter invalid sequences from the string, some
69 * will simply fail. To ensure reliable behaviour, make sure everything you
70 * pass to the API is already in UTF-8.
71
72 * \section simple_sec Simple API
73 *
74 * Use this if you develop your program in synchronous style and just
75 * need a way to play or record data on the sound server. See
76 * \subpage simple for more details.
77 *
78 * \section async_sec Asynchronous API
79 *
80 * Use this if you develop your programs in asynchronous, event loop
81 * based style or if you want to use the advanced features of the
82 * PulseAudio API. A guide can be found in \subpage async.
83 *
84 * By using the built-in threaded main loop, it is possible to acheive a
85 * pseudo-synchronous API, which can be useful in synchronous applications
86 * where the simple API is insufficient. See the \ref async page for
87 * details.
88 *
89 * \section thread_sec Threads
90 *
91 * The PulseAudio client libraries are not designed to be used in a
92 * heavily threaded environment. They are however designed to be reentrant
93 * safe.
94 *
95 * To use a the libraries in a threaded environment, you must assure that
96 * all objects are only used in one thread at a time. Normally, this means
97 * that all objects belonging to a single context must be accessed from the
98 * same thread.
99 *
100 * The included main loop implementation is also not thread safe. Take care
101 * to make sure event lists are not manipulated when any other code is
102 * using the main loop.
103 *
104 * \section pkgconfig pkg-config
105 *
106 * The PulseAudio libraries provide pkg-config snippets for the different
107 * modules:
108 *
109 * \li libpulse - The asynchronous API and the internal main loop implementation.
110 * \li libpulse-mainloop-glib12 - GLIB 1.2 main loop bindings.
111 * \li libpulse-mainloop-glib - GLIB 2.x main loop bindings.
112 * \li libpulse-simple - The simple PulseAudio API.
113 */
114
115 #endif