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 (at) 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 #include <pulse/proplist.h> 47 #include <pulse/rtclock.h> 48 49 /** \file 50 * Include all libpulse header files at once. The following files are 51 * included: \ref mainloop-api.h, \ref sample.h, \ref def.h, \ref 52 * context.h, \ref stream.h, \ref introspect.h, \ref subscribe.h, \ref 53 * scache.h, \ref version.h, \ref error.h, \ref channelmap.h, \ref 54 * operation.h,\ref volume.h, \ref xmalloc.h, \ref utf8.h, \ref 55 * thread-mainloop.h, \ref mainloop.h, \ref util.h, \ref proplist.h, 56 * \ref timeval.h, \ref rtclock.h and \ref mainloop-signal.h at 57 * once */ 58 59 /** \mainpage 60 * 61 * \section intro_sec Introduction 62 * 63 * This document describes the client API for the PulseAudio sound 64 * server. The API comes in two flavours to accommodate different styles 65 * of applications and different needs in complexity: 66 * 67 * \li The complete but somewhat complicated to use asynchronous API 68 * \li The simplified, easy to use, but limited synchronous API 69 * 70 * All strings in PulseAudio are in the UTF-8 encoding, regardless of current 71 * locale. Some functions will filter invalid sequences from the string, some 72 * will simply fail. To ensure reliable behaviour, make sure everything you 73 * pass to the API is already in UTF-8. 74 75 * \section simple_sec Simple API 76 * 77 * Use this if you develop your program in synchronous style and just 78 * need a way to play or record data on the sound server. See 79 * \subpage simple for more details. 80 * 81 * \section async_sec Asynchronous API 82 * 83 * Use this if you develop your programs in asynchronous, event loop 84 * based style or if you want to use the advanced features of the 85 * PulseAudio API. A guide can be found in \subpage async. 86 * 87 * By using the built-in threaded main loop, it is possible to acheive a 88 * pseudo-synchronous API, which can be useful in synchronous applications 89 * where the simple API is insufficient. See the \ref async page for 90 * details. 91 * 92 * \section thread_sec Threads 93 * 94 * The PulseAudio client libraries are not designed to be directly 95 * thread-safe. They are however designed to be reentrant and 96 * threads-aware. 97 * 98 * To use the libraries in a threaded environment, you must assure that 99 * all objects are only used in one thread at a time. Normally, this means 100 * that all objects belonging to a single context must be accessed from the 101 * same thread. 102 * 103 * The included main loop implementation is also not thread safe. Take care 104 * to make sure event objects are not manipulated when any other code is 105 * using the main loop. 106 * 107 * \section pkgconfig pkg-config 108 * 109 * The PulseAudio libraries provide pkg-config snippets for the different 110 * modules: 111 * 112 * \li libpulse - The asynchronous API and the internal main loop implementation. 113 * \li libpulse-mainloop-glib - GLIB 2.x main loop bindings. 114 * \li libpulse-simple - The simple PulseAudio API. 115 */ 116 117 #endif 118