Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 187676b5433787923dfa2cdd6900c6cd > files > 124

lib64pulseaudio-devel-0.9.15-2.0.7mdv2009.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>PulseAudio: Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li class="current"><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>PulseAudio Documentation</h1>
<p>
<h3 align="center">0.9.15 </h3><h2><a class="anchor" name="intro_sec">
Introduction</a></h2>
This document describes the client API for the PulseAudio sound server. The API comes in two flavours to accommodate different styles of applications and different needs in complexity:<p>
<ul>
<li>The complete but somewhat complicated to use asynchronous API </li>
<li>The simplified, easy to use, but limited synchronous API</li>
</ul>
All strings in PulseAudio are in the UTF-8 encoding, regardless of current locale. Some functions will filter invalid sequences from the string, some will simply fail. To ensure reliable behaviour, make sure everything you pass to the API is already in UTF-8.<h2><a class="anchor" name="simple_sec">
Simple API</a></h2>
Use this if you develop your program in synchronous style and just need a way to play or record data on the sound server. See <a class="el" href="simple.html">Simple API</a> for more details.<h2><a class="anchor" name="async_sec">
Asynchronous API</a></h2>
Use this if you develop your programs in asynchronous, event loop based style or if you want to use the advanced features of the PulseAudio API. A guide can be found in <a class="el" href="async.html">Asynchronous API</a>.<p>
By using the built-in threaded main loop, it is possible to acheive a pseudo-synchronous API, which can be useful in synchronous applications where the simple API is insufficient. See the <a class="el" href="async.html">Asynchronous API</a> page for details.<h2><a class="anchor" name="thread_sec">
Threads</a></h2>
The PulseAudio client libraries are not designed to be directly thread-safe. They are however designed to be reentrant and threads-aware.<p>
To use the libraries in a threaded environment, you must assure that all objects are only used in one thread at a time. Normally, this means that all objects belonging to a single context must be accessed from the same thread.<p>
The included main loop implementation is also not thread safe. Take care to make sure event objects are not manipulated when any other code is using the main loop.<h2><a class="anchor" name="pkgconfig">
pkg-config</a></h2>
The PulseAudio libraries provide pkg-config snippets for the different modules:<p>
<ul>
<li>libpulse - The asynchronous API and the internal main loop implementation. </li>
<li>libpulse-mainloop-glib - GLIB 2.x main loop bindings. </li>
<li>libpulse-simple - The simple PulseAudio API. </li>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 04:18:19 2009 for PulseAudio by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>