Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 866ae5f99ebc53131e4da7c8445c0009 > files > 181

portaudio-devel-19-16.fc18.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>PortAudio: portaudio.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PortAudio
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">portaudio.h File Reference<div class="ingroups"><a class="el" href="group__public__header.html">Public API definitions for users of PortAudio</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>The portable PortAudio API.  
<a href="#details">More...</a></p>

<p><a href="portaudio_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPaHostErrorInfo.html">PaHostErrorInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPaStreamParameters.html">PaStreamParameters</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPaStreamInfo.html">PaStreamInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a8c26dd5e6f28bb4cda7a1f5460282297"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a8c26dd5e6f28bb4cda7a1f5460282297">paNoDevice</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>)-1)</td></tr>
<tr class="separator:a8c26dd5e6f28bb4cda7a1f5460282297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14795fe3377c3b037025a61e550d44b5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a14795fe3377c3b037025a61e550d44b5">paUseHostApiSpecificDeviceSpecification</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>)-2)</td></tr>
<tr class="separator:a14795fe3377c3b037025a61e550d44b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f16d29916725b8791eae60ab9e0b081"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a2f16d29916725b8791eae60ab9e0b081">paFloat32</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000001)</td></tr>
<tr class="separator:a2f16d29916725b8791eae60ab9e0b081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fea69f3d81b628288325c06310b2fcf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a6fea69f3d81b628288325c06310b2fcf">paInt32</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000002)</td></tr>
<tr class="separator:a6fea69f3d81b628288325c06310b2fcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f891a0bd9e94a94a8f446c176b749e7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a7f891a0bd9e94a94a8f446c176b749e7">paInt24</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000004)</td></tr>
<tr class="separator:a7f891a0bd9e94a94a8f446c176b749e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab284f8e0a161d78ede863aec45461dbd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ab284f8e0a161d78ede863aec45461dbd">paInt16</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000008)</td></tr>
<tr class="separator:ab284f8e0a161d78ede863aec45461dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a058ecfb48ac9f0efad7a7b0d446efe3e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a058ecfb48ac9f0efad7a7b0d446efe3e">paInt8</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000010)</td></tr>
<tr class="separator:a058ecfb48ac9f0efad7a7b0d446efe3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad826044e4ffe7b16bf990803ab77df37"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ad826044e4ffe7b16bf990803ab77df37">paUInt8</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000020)</td></tr>
<tr class="separator:ad826044e4ffe7b16bf990803ab77df37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba595f6b645c8134a8ac3004957b9ff7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aba595f6b645c8134a8ac3004957b9ff7">paCustomFormat</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00010000)</td></tr>
<tr class="separator:aba595f6b645c8134a8ac3004957b9ff7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d79f0b88812cef5364b276dbbc898b5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a1d79f0b88812cef5364b276dbbc898b5">paNonInterleaved</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x80000000)</td></tr>
<tr class="separator:a1d79f0b88812cef5364b276dbbc898b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a400df642339bf4112333060af6a43c0f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a400df642339bf4112333060af6a43c0f">paFormatIsSupported</a>&#160;&#160;&#160;(0)</td></tr>
<tr class="separator:a400df642339bf4112333060af6a43c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1e20b97c1858a59bc62823573c59f0b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ac1e20b97c1858a59bc62823573c59f0b">paFramesPerBufferUnspecified</a>&#160;&#160;&#160;(0)</td></tr>
<tr class="separator:ac1e20b97c1858a59bc62823573c59f0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad33384abe3754a39f4773f2561773595"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ad33384abe3754a39f4773f2561773595">paNoFlag</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0)</td></tr>
<tr class="separator:ad33384abe3754a39f4773f2561773595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a837b8a81be3f7e36c96003e0d8dcec12"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a837b8a81be3f7e36c96003e0d8dcec12">paClipOff</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000001)</td></tr>
<tr class="separator:a837b8a81be3f7e36c96003e0d8dcec12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add037e93aec78fa8d67f7a59ed500707"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#add037e93aec78fa8d67f7a59ed500707">paDitherOff</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000002)</td></tr>
<tr class="separator:add037e93aec78fa8d67f7a59ed500707"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad89be5ed5279fc4c4a8495c775e1d5d5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ad89be5ed5279fc4c4a8495c775e1d5d5">paNeverDropInput</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000004)</td></tr>
<tr class="separator:ad89be5ed5279fc4c4a8495c775e1d5d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7b862a223edd680d7985c33c847e31d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ad7b862a223edd680d7985c33c847e31d">paPrimeOutputBuffersUsingStreamCallback</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000008)</td></tr>
<tr class="separator:ad7b862a223edd680d7985c33c847e31d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8522957e1bf814b9782d3a0e314c8b51"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a8522957e1bf814b9782d3a0e314c8b51">paPlatformSpecificFlags</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>)0xFFFF0000)</td></tr>
<tr class="separator:a8522957e1bf814b9782d3a0e314c8b51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57d1879f52406bdedfdda8f79f458e15"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a57d1879f52406bdedfdda8f79f458e15">paInputUnderflow</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000001)</td></tr>
<tr class="separator:a57d1879f52406bdedfdda8f79f458e15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea144f0edaf02d0ac8b113f41fb95c47"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aea144f0edaf02d0ac8b113f41fb95c47">paInputOverflow</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000002)</td></tr>
<tr class="separator:aea144f0edaf02d0ac8b113f41fb95c47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa17c91c859b12ebbf53a1440def53c89"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aa17c91c859b12ebbf53a1440def53c89">paOutputUnderflow</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000004)</td></tr>
<tr class="separator:aa17c91c859b12ebbf53a1440def53c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac22bb260d47b348bd3aab8813fd45462"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ac22bb260d47b348bd3aab8813fd45462">paOutputOverflow</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000008)</td></tr>
<tr class="separator:ac22bb260d47b348bd3aab8813fd45462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6616980c2259866a39eb2b76fa4697d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ad6616980c2259866a39eb2b76fa4697d">paPrimingOutput</a>&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000010)</td></tr>
<tr class="separator:ad6616980c2259866a39eb2b76fa4697d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a4949e4a8ef9f9dbe8cbee414ce69841d"><td class="memItemLeft" align="right" valign="top">typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a></td></tr>
<tr class="separator:a4949e4a8ef9f9dbe8cbee414ce69841d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3e4186dbeeb329bceafc0efc2124d98"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3e4186dbeeb329bceafc0efc2124d98"></a>
typedef enum PaErrorCode&#160;</td><td class="memItemRight" valign="bottom"><b>PaErrorCode</b></td></tr>
<tr class="separator:af3e4186dbeeb329bceafc0efc2124d98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad79317e65bde63d76c4b8e711ac5a361"><td class="memItemLeft" align="right" valign="top">typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a></td></tr>
<tr class="separator:ad79317e65bde63d76c4b8e711ac5a361"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeef6da084c57c70aa94be97411e19930"><td class="memItemLeft" align="right" valign="top">typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a></td></tr>
<tr class="separator:aeef6da084c57c70aa94be97411e19930"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae247ec252e84112170079ece319fc42c"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ae247ec252e84112170079ece319fc42c">PaHostApiTypeId</a></td></tr>
<tr class="separator:ae247ec252e84112170079ece319fc42c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59bc8800f4c058add2e9a4de6f263352"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a59bc8800f4c058add2e9a4de6f263352">PaHostApiInfo</a></td></tr>
<tr class="separator:a59bc8800f4c058add2e9a4de6f263352"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae5f7523aa88f6e1ab05230103bd3560"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structPaHostErrorInfo.html">PaHostErrorInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aae5f7523aa88f6e1ab05230103bd3560">PaHostErrorInfo</a></td></tr>
<tr class="separator:aae5f7523aa88f6e1ab05230103bd3560"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af17a7e6d0471a23071acf8dbd7bbe4bd"><td class="memItemLeft" align="right" valign="top">typedef double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#af17a7e6d0471a23071acf8dbd7bbe4bd">PaTime</a></td></tr>
<tr class="separator:af17a7e6d0471a23071acf8dbd7bbe4bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4582d93c2c2e60e12be3d74c5fe00b96"><td class="memItemLeft" align="right" valign="top">typedef unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a></td></tr>
<tr class="separator:a4582d93c2c2e60e12be3d74c5fe00b96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84166d5f748e192341b71cf1b05d28b3"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a84166d5f748e192341b71cf1b05d28b3">PaDeviceInfo</a></td></tr>
<tr class="separator:a84166d5f748e192341b71cf1b05d28b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaedb633e6f41d592bf999c18bdb8bb12"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aaedb633e6f41d592bf999c18bdb8bb12">PaStreamParameters</a></td></tr>
<tr class="separator:aaedb633e6f41d592bf999c18bdb8bb12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19874734f89958fccf86785490d53b4c"><td class="memItemLeft" align="right" valign="top">typedef void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a></td></tr>
<tr class="separator:a19874734f89958fccf86785490d53b4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37c7ac3ace7d2dd1430f40ecdee4ebb6"><td class="memItemLeft" align="right" valign="top">typedef unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a></td></tr>
<tr class="separator:a37c7ac3ace7d2dd1430f40ecdee4ebb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac81b1065de3722c62eae395281451a73"><td class="memItemLeft" align="right" valign="top">typedef struct <br class="typebreak"/>
<a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ac81b1065de3722c62eae395281451a73">PaStreamCallbackTimeInfo</a></td></tr>
<tr class="separator:ac81b1065de3722c62eae395281451a73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55a005924bcfa0424594f4f65cd4ae82"><td class="memItemLeft" align="right" valign="top">typedef unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a></td></tr>
<tr class="separator:a55a005924bcfa0424594f4f65cd4ae82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82cf09a8d14c7b614a8b73774f4952f1"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32">PaStreamCallbackResult</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a82cf09a8d14c7b614a8b73774f4952f1">PaStreamCallbackResult</a></td></tr>
<tr class="separator:a82cf09a8d14c7b614a8b73774f4952f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a60fb2a5ec9cbade3f54a9c978e2710"><td class="memItemLeft" align="right" valign="top">typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> (const void *input, void *output, unsigned long frameCount, const <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a> *timeInfo, <a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a> statusFlags, void *userData)</td></tr>
<tr class="separator:a8a60fb2a5ec9cbade3f54a9c978e2710"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2530ee0cb756c67726f9074d3482ef2"><td class="memItemLeft" align="right" valign="top">typedef void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ab2530ee0cb756c67726f9074d3482ef2">PaStreamFinishedCallback</a> (void *userData)</td></tr>
<tr class="separator:ab2530ee0cb756c67726f9074d3482ef2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5efc2a97ba96a3e06849c1a857127acc"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structPaStreamInfo.html">PaStreamInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a5efc2a97ba96a3e06849c1a857127acc">PaStreamInfo</a></td></tr>
<tr class="separator:a5efc2a97ba96a3e06849c1a857127acc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a2e45bf8b5145f131a91c128af2bdaec7"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>PaErrorCode</b> { <br/>
&#160;&#160;<b>paNoError</b> = 0, 
<b>paNotInitialized</b> = -10000, 
<b>paUnanticipatedHostError</b>, 
<b>paInvalidChannelCount</b>, 
<br/>
&#160;&#160;<b>paInvalidSampleRate</b>, 
<b>paInvalidDevice</b>, 
<b>paInvalidFlag</b>, 
<b>paSampleFormatNotSupported</b>, 
<br/>
&#160;&#160;<b>paBadIODeviceCombination</b>, 
<b>paInsufficientMemory</b>, 
<b>paBufferTooBig</b>, 
<b>paBufferTooSmall</b>, 
<br/>
&#160;&#160;<b>paNullCallback</b>, 
<b>paBadStreamPtr</b>, 
<b>paTimedOut</b>, 
<b>paInternalError</b>, 
<br/>
&#160;&#160;<b>paDeviceUnavailable</b>, 
<b>paIncompatibleHostApiSpecificStreamInfo</b>, 
<b>paStreamIsStopped</b>, 
<b>paStreamIsNotStopped</b>, 
<br/>
&#160;&#160;<b>paInputOverflowed</b>, 
<b>paOutputUnderflowed</b>, 
<b>paHostApiNotFound</b>, 
<b>paInvalidHostApi</b>, 
<br/>
&#160;&#160;<b>paCanNotReadFromACallbackStream</b>, 
<b>paCanNotWriteToACallbackStream</b>, 
<b>paCanNotReadFromAnOutputOnlyStream</b>, 
<b>paCanNotWriteToAnInputOnlyStream</b>, 
<br/>
&#160;&#160;<b>paIncompatibleStreamHostApi</b>, 
<b>paBadBufferPtr</b>
<br/>
 }</td></tr>
<tr class="separator:a2e45bf8b5145f131a91c128af2bdaec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eaebe3d39c5ea45598da8f86dc2e5ae"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a> { <br/>
&#160;&#160;<b>paInDevelopment</b> =0, 
<b>paDirectSound</b> =1, 
<b>paMME</b> =2, 
<b>paASIO</b> =3, 
<br/>
&#160;&#160;<b>paSoundManager</b> =4, 
<b>paCoreAudio</b> =5, 
<b>paOSS</b> =7, 
<b>paALSA</b> =8, 
<br/>
&#160;&#160;<b>paAL</b> =9, 
<b>paBeOS</b> =10, 
<b>paWDMKS</b> =11, 
<b>paJACK</b> =12, 
<br/>
&#160;&#160;<b>paWASAPI</b> =13, 
<b>paAudioScienceHPI</b> =14
<br/>
 }</td></tr>
<tr class="separator:a8eaebe3d39c5ea45598da8f86dc2e5ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9bfb9c4e1895326f30f80d415c66c32"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32">PaStreamCallbackResult</a> { <a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32acba49cbf0e3bf605bb3deecef3b4fce3">paContinue</a> =0, 
<a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32aa01800db52ead393d8b0016f63d76650">paComplete</a> =1, 
<a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32acaf141eb5d71420ffb4474da1dbd8de2">paAbort</a> =2
 }</td></tr>
<tr class="separator:ae9bfb9c4e1895326f30f80d415c66c32"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a66da08bcf908e0849c62a6b47f50d7b4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a66da08bcf908e0849c62a6b47f50d7b4">Pa_GetVersion</a> (void)</td></tr>
<tr class="separator:a66da08bcf908e0849c62a6b47f50d7b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28f3fd9e6d9f933cc695abea71c4b445"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a28f3fd9e6d9f933cc695abea71c4b445">Pa_GetVersionText</a> (void)</td></tr>
<tr class="separator:a28f3fd9e6d9f933cc695abea71c4b445"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae606855a611cf29c7d2d7421df5e3b5d"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ae606855a611cf29c7d2d7421df5e3b5d">Pa_GetErrorText</a> (<a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> errorCode)</td></tr>
<tr class="separator:ae606855a611cf29c7d2d7421df5e3b5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abed859482d156622d9332dff9b2d89da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize</a> (void)</td></tr>
<tr class="separator:abed859482d156622d9332dff9b2d89da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0db317604e916e8bd6098e60e6237221"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate</a> (void)</td></tr>
<tr class="separator:a0db317604e916e8bd6098e60e6237221"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19dbdb7c8702e3f4bfc0cdb99dac3dd9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a19dbdb7c8702e3f4bfc0cdb99dac3dd9">Pa_GetHostApiCount</a> (void)</td></tr>
<tr class="separator:a19dbdb7c8702e3f4bfc0cdb99dac3dd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae55c77f9b7e3f8eb301a6f1c0e2347ac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ae55c77f9b7e3f8eb301a6f1c0e2347ac">Pa_GetDefaultHostApi</a> (void)</td></tr>
<tr class="separator:ae55c77f9b7e3f8eb301a6f1c0e2347ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c650aede88ea553066bab9bbe97ea90"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a7c650aede88ea553066bab9bbe97ea90">Pa_GetHostApiInfo</a> (<a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a> hostApi)</td></tr>
<tr class="separator:a7c650aede88ea553066bab9bbe97ea90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a081c3975126d20b4226facfb7ba0620f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a081c3975126d20b4226facfb7ba0620f">Pa_HostApiTypeIdToHostApiIndex</a> (<a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a> type)</td></tr>
<tr class="separator:a081c3975126d20b4226facfb7ba0620f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54f306b5e5258323c95a27c5722258cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a54f306b5e5258323c95a27c5722258cd">Pa_HostApiDeviceIndexToDeviceIndex</a> (<a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a> hostApi, int hostApiDeviceIndex)</td></tr>
<tr class="separator:a54f306b5e5258323c95a27c5722258cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad573f208b60577f21d2777a7c5054e0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structPaHostErrorInfo.html">PaHostErrorInfo</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aad573f208b60577f21d2777a7c5054e0">Pa_GetLastHostErrorInfo</a> (void)</td></tr>
<tr class="separator:aad573f208b60577f21d2777a7c5054e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfe4d3c5ec1a343f459981bfa2057f8d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#acfe4d3c5ec1a343f459981bfa2057f8d">Pa_GetDeviceCount</a> (void)</td></tr>
<tr class="separator:acfe4d3c5ec1a343f459981bfa2057f8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf9f2f82da95553d5adb929af670f74b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#abf9f2f82da95553d5adb929af670f74b">Pa_GetDefaultInputDevice</a> (void)</td></tr>
<tr class="separator:abf9f2f82da95553d5adb929af670f74b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc955dfab007624000695c48d4f876dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#adc955dfab007624000695c48d4f876dc">Pa_GetDefaultOutputDevice</a> (void)</td></tr>
<tr class="separator:adc955dfab007624000695c48d4f876dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7d8e091ffc1d1d4a035704660e117eb"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ac7d8e091ffc1d1d4a035704660e117eb">Pa_GetDeviceInfo</a> (<a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> device)</td></tr>
<tr class="separator:ac7d8e091ffc1d1d4a035704660e117eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdb313743d6efef26cecdae787a2bd3d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#abdb313743d6efef26cecdae787a2bd3d">Pa_IsFormatSupported</a> (const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *inputParameters, const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *outputParameters, double sampleRate)</td></tr>
<tr class="separator:abdb313743d6efef26cecdae787a2bd3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a443ad16338191af364e3be988014cbbe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> **stream, const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *inputParameters, const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *outputParameters, double sampleRate, unsigned long framesPerBuffer, <a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a> streamFlags, <a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> *streamCallback, void *userData)</td></tr>
<tr class="separator:a443ad16338191af364e3be988014cbbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a12735ac191200f696a43b87667b714"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a0a12735ac191200f696a43b87667b714">Pa_OpenDefaultStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> **stream, int numInputChannels, int numOutputChannels, <a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> sampleFormat, double sampleRate, unsigned long framesPerBuffer, <a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> *streamCallback, void *userData)</td></tr>
<tr class="separator:a0a12735ac191200f696a43b87667b714"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92f56f88cbd14da0e8e03077e835d104"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a92f56f88cbd14da0e8e03077e835d104">Pa_CloseStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a92f56f88cbd14da0e8e03077e835d104"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa11e7b06b2cde8621551f5d527965838"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#aa11e7b06b2cde8621551f5d527965838">Pa_SetStreamFinishedCallback</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream, <a class="el" href="portaudio_8h.html#ab2530ee0cb756c67726f9074d3482ef2">PaStreamFinishedCallback</a> *streamFinishedCallback)</td></tr>
<tr class="separator:aa11e7b06b2cde8621551f5d527965838"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7432aadd26c40452da12fa99fc1a047b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a7432aadd26c40452da12fa99fc1a047b">Pa_StartStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a7432aadd26c40452da12fa99fc1a047b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af18dd60220251286c337631a855e38a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#af18dd60220251286c337631a855e38a0">Pa_StopStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:af18dd60220251286c337631a855e38a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a138e57abde4e833c457b64895f638a25"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a138e57abde4e833c457b64895f638a25">Pa_AbortStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a138e57abde4e833c457b64895f638a25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52d778c985ae9d566de7e13529cc771f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a52d778c985ae9d566de7e13529cc771f">Pa_IsStreamStopped</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a52d778c985ae9d566de7e13529cc771f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f8709c4971932643681a6f374c4bb5a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a1f8709c4971932643681a6f374c4bb5a">Pa_IsStreamActive</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a1f8709c4971932643681a6f374c4bb5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d9c4cbda4e9f381b76f287c3de8a758"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structPaStreamInfo.html">PaStreamInfo</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a3d9c4cbda4e9f381b76f287c3de8a758">Pa_GetStreamInfo</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a3d9c4cbda4e9f381b76f287c3de8a758"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b3fb60e6949f37f7f134105ff425749"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#af17a7e6d0471a23071acf8dbd7bbe4bd">PaTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a2b3fb60e6949f37f7f134105ff425749">Pa_GetStreamTime</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a2b3fb60e6949f37f7f134105ff425749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83b8c624464dd7bb6a01b06ab596c115"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a83b8c624464dd7bb6a01b06ab596c115">Pa_GetStreamCpuLoad</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a83b8c624464dd7bb6a01b06ab596c115"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b62d4b74b5d3d88368e9e4c0b8b2dc7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a0b62d4b74b5d3d88368e9e4c0b8b2dc7">Pa_ReadStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream, void *buffer, unsigned long frames)</td></tr>
<tr class="separator:a0b62d4b74b5d3d88368e9e4c0b8b2dc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a075a6efb503a728213bdae24347ed27d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a075a6efb503a728213bdae24347ed27d">Pa_WriteStream</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream, const void *buffer, unsigned long frames)</td></tr>
<tr class="separator:a075a6efb503a728213bdae24347ed27d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad04c33f045fa58d7b705b56b1fd3e816"><td class="memItemLeft" align="right" valign="top">signed long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#ad04c33f045fa58d7b705b56b1fd3e816">Pa_GetStreamReadAvailable</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:ad04c33f045fa58d7b705b56b1fd3e816"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25595acf48733ec32045aa189c3caa61"><td class="memItemLeft" align="right" valign="top">signed long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a25595acf48733ec32045aa189c3caa61">Pa_GetStreamWriteAvailable</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a25595acf48733ec32045aa189c3caa61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a290c1596fb9c8bab22a28d3ca75ea321"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a290c1596fb9c8bab22a28d3ca75ea321">Pa_GetStreamHostApiType</a> (<a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *stream)</td></tr>
<tr class="separator:a290c1596fb9c8bab22a28d3ca75ea321"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a541ed0b734df2631bc4c229acf92abc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a541ed0b734df2631bc4c229acf92abc1">Pa_GetSampleSize</a> (<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> format)</td></tr>
<tr class="separator:a541ed0b734df2631bc4c229acf92abc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b3c20044c9401c42add29475636e83d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="portaudio_8h.html#a1b3c20044c9401c42add29475636e83d">Pa_Sleep</a> (long msec)</td></tr>
<tr class="separator:a1b3c20044c9401c42add29475636e83d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The portable PortAudio API. </p>

<p>Definition in file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a837b8a81be3f7e36c96003e0d8dcec12"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paClipOff&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000001)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Disable default clipping of out of range samples. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00610">610</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="aba595f6b645c8134a8ac3004957b9ff7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paCustomFormat&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00010000)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00442">442</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="add037e93aec78fa8d67f7a59ed500707"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paDitherOff&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000002)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Disable default dithering. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00615">615</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2f16d29916725b8791eae60ab9e0b081"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paFloat32&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000001)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00436">436</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a400df642339bf4112333060af6a43c0f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paFormatIsSupported&#160;&#160;&#160;(0)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return code for Pa_IsFormatSupported indicating success. </p>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00534">534</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac1e20b97c1858a59bc62823573c59f0b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paFramesPerBufferUnspecified&#160;&#160;&#160;(0)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Can be passed as the framesPerBuffer parameter to <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a> or <a class="el" href="portaudio_8h.html#a0a12735ac191200f696a43b87667b714">Pa_OpenDefaultStream()</a> to indicate that the stream callback will accept buffers of any size. </p>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00591">591</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="aea144f0edaf02d0ac8b113f41fb95c47"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paInputOverflow&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000002)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>In a stream opened with paFramesPerBufferUnspecified, indicates that data prior to the first sample of the input buffer was discarded due to an overflow, possibly because the stream callback is using too much CPU time. Otherwise indicates that data prior to one or more samples in the input buffer was discarded. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00679">679</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a57d1879f52406bdedfdda8f79f458e15"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paInputUnderflow&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000001)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>In a stream opened with paFramesPerBufferUnspecified, indicates that input data is all silence (zeros) because no real data is available. In a stream opened without paFramesPerBufferUnspecified, it indicates that one or more zero samples have been inserted into the input buffer to compensate for an input underflow. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00670">670</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab284f8e0a161d78ede863aec45461dbd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paInt16&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000008)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00439">439</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7f891a0bd9e94a94a8f446c176b749e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paInt24&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000004)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Packed 24 bit format.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00438">438</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6fea69f3d81b628288325c06310b2fcf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paInt32&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000002)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00437">437</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a058ecfb48ac9f0efad7a7b0d446efe3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paInt8&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000010)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00440">440</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad89be5ed5279fc4c4a8495c775e1d5d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paNeverDropInput&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000004)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Flag requests that where possible a full duplex stream will not discard overflowed input samples without calling the stream callback. This flag is only valid for full duplex callback streams and only when used in combination with the paFramesPerBufferUnspecified (0) framesPerBuffer parameter. Using this flag incorrectly results in a paInvalidFlag error being returned from Pa_OpenStream and Pa_OpenDefaultStream.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>, <a class="el" href="portaudio_8h.html#ac1e20b97c1858a59bc62823573c59f0b">paFramesPerBufferUnspecified</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00626">626</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8c26dd5e6f28bb4cda7a1f5460282297"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paNoDevice&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>)-1)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A special PaDeviceIndex value indicating that no device is available, or should be used.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00169">169</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad33384abe3754a39f4773f2561773595"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paNoFlag&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00605">605</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1d79f0b88812cef5364b276dbbc898b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paNonInterleaved&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x80000000)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00444">444</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac22bb260d47b348bd3aab8813fd45462"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paOutputOverflow&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000008)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Indicates that output data will be discarded because no room is available. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00690">690</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa17c91c859b12ebbf53a1440def53c89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paOutputUnderflow&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000004)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Indicates that output data (or a gap) was inserted, possibly because the stream callback is using too much CPU time. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00685">685</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8522957e1bf814b9782d3a0e314c8b51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paPlatformSpecificFlags&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>)0xFFFF0000)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A mask specifying the platform specific bits. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00639">639</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad7b862a223edd680d7985c33c847e31d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paPrimeOutputBuffersUsingStreamCallback&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>) 0x00000008)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Call the stream callback to fill initial output buffers, rather than the default behavior of priming the buffers with zeros (silence). This flag has no effect for input-only and blocking read/write streams.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00634">634</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad6616980c2259866a39eb2b76fa4697d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paPrimingOutput&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a>) 0x00000010)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Some of all of the output data will be used to prime the stream, input data may be zero. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00696">696</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad826044e4ffe7b16bf990803ab77df37"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paUInt8&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>) 0x00000020)</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00441">441</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a14795fe3377c3b037025a61e550d44b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define paUseHostApiSpecificDeviceSpecification&#160;&#160;&#160;((<a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>)-2)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A special PaDeviceIndex value indicating that the device(s) to be used are specified in the host api specific stream info structure.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00177">177</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ad79317e65bde63d76c4b8e711ac5a361"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The type used to refer to audio devices. Values of this type usually range from 0 to (<a class="el" href="portaudio_8h.html#acfe4d3c5ec1a343f459981bfa2057f8d">Pa_GetDeviceCount()</a>-1), and may also take on the PaNoDevice and paUseHostApiSpecificDeviceSpecification values.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#acfe4d3c5ec1a343f459981bfa2057f8d">Pa_GetDeviceCount</a>, <a class="el" href="portaudio_8h.html#a8c26dd5e6f28bb4cda7a1f5460282297">paNoDevice</a>, <a class="el" href="portaudio_8h.html#a14795fe3377c3b037025a61e550d44b5">paUseHostApiSpecificDeviceSpecification</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00161">161</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a84166d5f748e192341b71cf1b05d28b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a>  <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A structure providing information and capabilities of PortAudio devices. Devices may support input, output or both input and output. </p>

</div>
</div>
<a class="anchor" id="a4949e4a8ef9f9dbe8cbee414ce69841d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Error codes returned by PortAudio functions. Note that with the exception of paNoError, all PaErrorCodes are negative. </p>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00070">70</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="aeef6da084c57c70aa94be97411e19930"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The type used to enumerate to host APIs at runtime. Values of this type range from 0 to (<a class="el" href="portaudio_8h.html#a19dbdb7c8702e3f4bfc0cdb99dac3dd9">Pa_GetHostApiCount()</a>-1).</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a19dbdb7c8702e3f4bfc0cdb99dac3dd9">Pa_GetHostApiCount</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00187">187</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a59bc8800f4c058add2e9a4de6f263352"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a>  <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A structure containing information about a particular host API. </p>

</div>
</div>
<a class="anchor" id="ae247ec252e84112170079ece319fc42c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a>  <a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Unchanging unique identifiers for each supported host API. This type is used in the <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> structure. The values are guaranteed to be unique and to never change, thus allowing code to be written that conditionally uses host API specific extensions.</p>
<p>New type ids will be allocated when support for a host API reaches "public alpha" status, prior to that developers should use the paInDevelopment type id.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aae5f7523aa88f6e1ab05230103bd3560"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structPaHostErrorInfo.html">PaHostErrorInfo</a> <a class="el" href="structPaHostErrorInfo.html">PaHostErrorInfo</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Structure used to return information about a host error condition. </p>

</div>
</div>
<a class="anchor" id="a4582d93c2c2e60e12be3d74c5fe00b96"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned long <a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A type used to specify one or more sample formats. Each value indicates a possible format for sound data passed to and from the stream callback, Pa_ReadStream and Pa_WriteStream.</p>
<p>The standard formats paFloat32, paInt16, paInt32, paInt24, paInt8 and aUInt8 are usually implemented by all implementations.</p>
<p>The floating point representation (paFloat32) uses +1.0 and -1.0 as the maximum and minimum respectively.</p>
<p>paUInt8 is an unsigned 8 bit format where 128 is considered "ground"</p>
<p>The paNonInterleaved flag indicates that audio data is passed as an array of pointers to separate buffers, one buffer for each channel. Usually, when this flag is not used, audio data is passed as a single buffer with all channels interleaved.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream</a>, <a class="el" href="portaudio_8h.html#a0a12735ac191200f696a43b87667b714">Pa_OpenDefaultStream</a>, <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a> </dd>
<dd>
<a class="el" href="portaudio_8h.html#a2f16d29916725b8791eae60ab9e0b081">paFloat32</a>, <a class="el" href="portaudio_8h.html#ab284f8e0a161d78ede863aec45461dbd">paInt16</a>, <a class="el" href="portaudio_8h.html#a6fea69f3d81b628288325c06310b2fcf">paInt32</a>, <a class="el" href="portaudio_8h.html#a7f891a0bd9e94a94a8f446c176b749e7">paInt24</a>, <a class="el" href="portaudio_8h.html#a058ecfb48ac9f0efad7a7b0d446efe3e">paInt8</a> </dd>
<dd>
<a class="el" href="portaudio_8h.html#ad826044e4ffe7b16bf990803ab77df37">paUInt8</a>, <a class="el" href="portaudio_8h.html#aba595f6b645c8134a8ac3004957b9ff7">paCustomFormat</a>, <a class="el" href="portaudio_8h.html#a1d79f0b88812cef5364b276dbbc898b5">paNonInterleaved</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00433">433</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a19874734f89958fccf86785490d53b4c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void <a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A single PaStream can provide multiple channels of real-time streaming audio input and output to a client application. A stream provides access to audio hardware represented by one or more PaDevices. Depending on the underlying Host API, it may be possible to open multiple streams using the same device, however this behavior is implementation defined. Portable applications should assume that a PaDevice may be simultaneously used by at most one PaStream.</p>
<p>Pointers to PaStream objects are passed between PortAudio functions that operate on streams.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream</a>, <a class="el" href="portaudio_8h.html#a0a12735ac191200f696a43b87667b714">Pa_OpenDefaultStream</a>, <a class="el" href="portaudio_8h.html#a0a12735ac191200f696a43b87667b714">Pa_OpenDefaultStream</a>, <a class="el" href="portaudio_8h.html#a92f56f88cbd14da0e8e03077e835d104">Pa_CloseStream</a>, <a class="el" href="portaudio_8h.html#a7432aadd26c40452da12fa99fc1a047b">Pa_StartStream</a>, <a class="el" href="portaudio_8h.html#af18dd60220251286c337631a855e38a0">Pa_StopStream</a>, <a class="el" href="portaudio_8h.html#a138e57abde4e833c457b64895f638a25">Pa_AbortStream</a>, <a class="el" href="portaudio_8h.html#a1f8709c4971932643681a6f374c4bb5a">Pa_IsStreamActive</a>, <a class="el" href="portaudio_8h.html#a2b3fb60e6949f37f7f134105ff425749">Pa_GetStreamTime</a>, <a class="el" href="portaudio_8h.html#a83b8c624464dd7bb6a01b06ab596c115">Pa_GetStreamCpuLoad</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00584">584</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8a60fb2a5ec9cbade3f54a9c978e2710"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int PaStreamCallback(const void *input, void *output, unsigned long frameCount, const <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a> *timeInfo, <a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a> statusFlags, void *userData)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Functions of type PaStreamCallback are implemented by PortAudio clients. They consume, process or generate audio in response to requests from an active PortAudio stream.</p>
<p>When a stream is running, PortAudio calls the stream callback periodically. The callback function is responsible for processing buffers of audio samples passed via the input and output parameters.</p>
<p>The PortAudio stream callback runs at very high or real-time priority. It is required to consistently meet its time deadlines. Do not allocate memory, access the file system, call library functions or call other functions from the stream callback that may block or take an unpredictable amount of time to complete.</p>
<p>In order for a stream to maintain glitch-free operation the callback must consume and return audio data faster than it is recorded and/or played. PortAudio anticipates that each callback invocation may execute for a duration approaching the duration of frameCount audio frames at the stream sample rate. It is reasonable to expect to be able to utilise 70% or more of the available CPU time in the PortAudio callback. However, due to buffer size adaption and other factors, not all host APIs are able to guarantee audio stability under heavy CPU load with arbitrary fixed callback buffer sizes. When high callback CPU utilisation is required the most robust behavior can be achieved by using paFramesPerBufferUnspecified as the <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a> framesPerBuffer parameter.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>and</td></tr>
    <tr><td class="paramname">output</td><td>are either arrays of interleaved samples or; if non-interleaved samples were requested using the paNonInterleaved sample format flag, an array of buffer pointers, one non-interleaved buffer for each channel.</td></tr>
  </table>
  </dd>
</dl>
<p>The format, packing and number of channels used by the buffers are determined by parameters to <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">frameCount</td><td>The number of sample frames to be processed by the stream callback.</td></tr>
    <tr><td class="paramname">timeInfo</td><td>Timestamps indicating the ADC capture time of the first sample in the input buffer, the DAC output time of the first sample in the output buffer and the time the callback was invoked. See <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a> and <a class="el" href="portaudio_8h.html#a2b3fb60e6949f37f7f134105ff425749">Pa_GetStreamTime()</a></td></tr>
    <tr><td class="paramname">statusFlags</td><td>Flags indicating whether input and/or output buffers have been inserted or will be dropped to overcome underflow or overflow conditions.</td></tr>
    <tr><td class="paramname">userData</td><td>The value of a user supplied pointer passed to <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a> intended for storing synthesis data etc.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The stream callback should return one of the values in the <a class="el" href="portaudio_8h.html#a82cf09a8d14c7b614a8b73774f4952f1">PaStreamCallbackResult</a> enumeration. To ensure that the callback continues to be called, it should return paContinue (0). Either paComplete or paAbort can be returned to finish stream processing, after either of these values is returned the callback will not be called again. If paAbort is returned the stream will finish as soon as possible. If paComplete is returned, the stream will continue until all buffers generated by the callback have been played. This may be useful in applications such as soundfile players where a specific duration of output is required. However, it is not necessary to utilize this mechanism as <a class="el" href="portaudio_8h.html#af18dd60220251286c337631a855e38a0">Pa_StopStream()</a>, <a class="el" href="portaudio_8h.html#a138e57abde4e833c457b64895f638a25">Pa_AbortStream()</a> or <a class="el" href="portaudio_8h.html#a92f56f88cbd14da0e8e03077e835d104">Pa_CloseStream()</a> can also be used to stop the stream. The callback must always fill the entire output buffer irrespective of its return value.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream</a>, <a class="el" href="portaudio_8h.html#a0a12735ac191200f696a43b87667b714">Pa_OpenDefaultStream</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>With the exception of <a class="el" href="portaudio_8h.html#a83b8c624464dd7bb6a01b06ab596c115">Pa_GetStreamCpuLoad()</a> it is not permissible to call PortAudio API functions from within the stream callback. </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00779">779</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a55a005924bcfa0424594f4f65cd4ae82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned long <a class="el" href="portaudio_8h.html#a55a005924bcfa0424594f4f65cd4ae82">PaStreamCallbackFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Flag bit constants for the statusFlags to PaStreamCallback.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a57d1879f52406bdedfdda8f79f458e15">paInputUnderflow</a>, <a class="el" href="portaudio_8h.html#aea144f0edaf02d0ac8b113f41fb95c47">paInputOverflow</a>, <a class="el" href="portaudio_8h.html#aa17c91c859b12ebbf53a1440def53c89">paOutputUnderflow</a>, <a class="el" href="portaudio_8h.html#ac22bb260d47b348bd3aab8813fd45462">paOutputOverflow</a>, <a class="el" href="portaudio_8h.html#ad6616980c2259866a39eb2b76fa4697d">paPrimingOutput</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00661">661</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a82cf09a8d14c7b614a8b73774f4952f1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32">PaStreamCallbackResult</a>  <a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32">PaStreamCallbackResult</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Allowable return values for the PaStreamCallback. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac81b1065de3722c62eae395281451a73"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a>  <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Timing information for the buffers passed to the stream callback.</p>
<p>Time values are expressed in seconds and are synchronised with the time base used by <a class="el" href="portaudio_8h.html#a2b3fb60e6949f37f7f134105ff425749">Pa_GetStreamTime()</a> for the associated stream.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a>, <a class="el" href="portaudio_8h.html#a2b3fb60e6949f37f7f134105ff425749">Pa_GetStreamTime</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab2530ee0cb756c67726f9074d3482ef2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void PaStreamFinishedCallback(void *userData)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Functions of type PaStreamFinishedCallback are implemented by PortAudio clients. They can be registered with a stream using the Pa_SetStreamFinishedCallback function. Once registered they are called when the stream becomes inactive (ie once a call to <a class="el" href="portaudio_8h.html#af18dd60220251286c337631a855e38a0">Pa_StopStream()</a> will not block). A stream will become inactive after the stream callback returns non-zero, or when Pa_StopStream or Pa_AbortStream is called. For a stream providing audio output, if the stream callback returns paComplete, or Pa_StopStream is called, the stream finished callback will not be called until all generated sample data has been played.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">userData</td><td>The userData parameter supplied to <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#aa11e7b06b2cde8621551f5d527965838">Pa_SetStreamFinishedCallback</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00911">911</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a37c7ac3ace7d2dd1430f40ecdee4ebb6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned long <a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Flags used to control the behavior of a stream. They are passed as parameters to Pa_OpenStream or Pa_OpenDefaultStream. Multiple flags may be ORed together.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream</a>, <a class="el" href="portaudio_8h.html#a0a12735ac191200f696a43b87667b714">Pa_OpenDefaultStream</a> </dd>
<dd>
<a class="el" href="portaudio_8h.html#ad33384abe3754a39f4773f2561773595">paNoFlag</a>, <a class="el" href="portaudio_8h.html#a837b8a81be3f7e36c96003e0d8dcec12">paClipOff</a>, <a class="el" href="portaudio_8h.html#add037e93aec78fa8d67f7a59ed500707">paDitherOff</a>, <a class="el" href="portaudio_8h.html#ad89be5ed5279fc4c4a8495c775e1d5d5">paNeverDropInput</a>, <a class="el" href="portaudio_8h.html#ad7b862a223edd680d7985c33c847e31d">paPrimeOutputBuffersUsingStreamCallback</a>, <a class="el" href="portaudio_8h.html#a8522957e1bf814b9782d3a0e314c8b51">paPlatformSpecificFlags</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00602">602</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5efc2a97ba96a3e06849c1a857127acc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structPaStreamInfo.html">PaStreamInfo</a>  <a class="el" href="structPaStreamInfo.html">PaStreamInfo</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A structure containing unchanging information about an open stream. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a3d9c4cbda4e9f381b76f287c3de8a758">Pa_GetStreamInfo</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aaedb633e6f41d592bf999c18bdb8bb12"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a>  <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parameters for one direction (input or output) of a stream. </p>

</div>
</div>
<a class="anchor" id="af17a7e6d0471a23071acf8dbd7bbe4bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef double <a class="el" href="portaudio_8h.html#af17a7e6d0471a23071acf8dbd7bbe4bd">PaTime</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The type used to represent monotonic time in seconds. PaTime is used for the fields of the <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a> argument to the PaStreamCallback and as the result of <a class="el" href="portaudio_8h.html#a2b3fb60e6949f37f7f134105ff425749">Pa_GetStreamTime()</a>.</p>
<p>PaTime values have unspecified origin.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a>, <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a>, <a class="el" href="portaudio_8h.html#a2b3fb60e6949f37f7f134105ff425749">Pa_GetStreamTime</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00409">409</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a8eaebe3d39c5ea45598da8f86dc2e5ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Unchanging unique identifiers for each supported host API. This type is used in the <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> structure. The values are guaranteed to be unique and to never change, thus allowing code to be written that conditionally uses host API specific extensions.</p>
<p>New type ids will be allocated when support for a host API reaches "public alpha" status, prior to that developers should use the paInDevelopment type id.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> </dd></dl>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00224">224</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae9bfb9c4e1895326f30f80d415c66c32"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="portaudio_8h.html#ae9bfb9c4e1895326f30f80d415c66c32">PaStreamCallbackResult</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Allowable return values for the PaStreamCallback. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ae9bfb9c4e1895326f30f80d415c66c32acba49cbf0e3bf605bb3deecef3b4fce3"></a>paContinue</em>&nbsp;</td><td class="fielddoc">
<p>Signal that the stream should continue invoking the callback and processing audio. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ae9bfb9c4e1895326f30f80d415c66c32aa01800db52ead393d8b0016f63d76650"></a>paComplete</em>&nbsp;</td><td class="fielddoc">
<p>Signal that the stream should stop invoking the callback and finish once all output samples have played. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ae9bfb9c4e1895326f30f80d415c66c32acaf141eb5d71420ffb4474da1dbd8de2"></a>paAbort</em>&nbsp;</td><td class="fielddoc">
<p>Signal that the stream should stop invoking the callback and finish as soon as possible. </p>
</td></tr>
</table>

<p>Definition at line <a class="el" href="portaudio_8h_source.html#l00702">702</a> of file <a class="el" href="portaudio_8h_source.html">portaudio.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a138e57abde4e833c457b64895f638a25"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_AbortStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Terminates audio processing immediately without waiting for pending buffers to complete. </p>

</div>
</div>
<a class="anchor" id="a92f56f88cbd14da0e8e03077e835d104"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_CloseStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Closes an audio stream. If the audio stream is active it discards any pending buffers as if <a class="el" href="portaudio_8h.html#a138e57abde4e833c457b64895f638a25">Pa_AbortStream()</a> had been called. </p>

</div>
</div>
<a class="anchor" id="ae55c77f9b7e3f8eb301a6f1c0e2347ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a> Pa_GetDefaultHostApi </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the index of the default host API. The default host API will be the lowest common denominator host API on the current platform and is unlikely to provide the best performance.</p>
<dl class="section return"><dt>Returns</dt><dd>A non-negative value ranging from 0 to (<a class="el" href="portaudio_8h.html#a19dbdb7c8702e3f4bfc0cdb99dac3dd9">Pa_GetHostApiCount()</a>-1) indicating the default host API index or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered. </dd></dl>

</div>
</div>
<a class="anchor" id="abf9f2f82da95553d5adb929af670f74b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> Pa_GetDefaultInputDevice </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the index of the default input device. The result can be used in the inputDevice parameter to <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>The default input device index for the default host API, or paNoDevice if no default input device is available or an error was encountered. </dd></dl>

</div>
</div>
<a class="anchor" id="adc955dfab007624000695c48d4f876dc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> Pa_GetDefaultOutputDevice </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Retrieve the index of the default output device. The result can be
</pre><p> used in the outputDevice parameter to <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>The default output device index for the default host API, or paNoDevice if no default output device is available or an error was encountered.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>On the PC, the user can specify a default device by setting an environment variable. For example, to use device #1. <pre>
 set PA_RECOMMENDED_OUTPUT_DEVICE=1
</pre> The user should first determine the available device ids by using the supplied application "pa_devs". </dd></dl>

</div>
</div>
<a class="anchor" id="acfe4d3c5ec1a343f459981bfa2057f8d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> Pa_GetDeviceCount </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the number of available devices. The number of available devices may be zero.</p>
<dl class="section return"><dt>Returns</dt><dd>A non-negative value indicating the number of available devices or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered. </dd></dl>

</div>
</div>
<a class="anchor" id="ac7d8e091ffc1d1d4a035704660e117eb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a>* Pa_GetDeviceInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a>&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve a pointer to a <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a> structure containing information about the specified device. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to an immutable <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a> structure. If the device parameter is out of range the function returns NULL.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">device</td><td>A valid device index in the range 0 to (<a class="el" href="portaudio_8h.html#acfe4d3c5ec1a343f459981bfa2057f8d">Pa_GetDeviceCount()</a>-1)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>PortAudio manages the memory referenced by the returned pointer, the client must not manipulate or free the memory. The pointer is only guaranteed to be valid between calls to <a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize()</a> and <a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate()</a>.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a>, <a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae606855a611cf29c7d2d7421df5e3b5d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* Pa_GetErrorText </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a>&#160;</td>
          <td class="paramname"><em>errorCode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Translate the supplied PortAudio error code into a human readable message. </p>

</div>
</div>
<a class="anchor" id="a19dbdb7c8702e3f4bfc0cdb99dac3dd9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a> Pa_GetHostApiCount </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the number of available host APIs. Even if a host API is available it may have no devices available.</p>
<dl class="section return"><dt>Returns</dt><dd>A non-negative value indicating the number of available host APIs or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7c650aede88ea553066bab9bbe97ea90"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a>* Pa_GetHostApiInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a>&#160;</td>
          <td class="paramname"><em>hostApi</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve a pointer to a structure containing information about a specific host Api.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hostApi</td><td>A valid host API index ranging from 0 to (<a class="el" href="portaudio_8h.html#a19dbdb7c8702e3f4bfc0cdb99dac3dd9">Pa_GetHostApiCount()</a>-1)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to an immutable <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> structure describing a specific host API. If the hostApi parameter is out of range or an error is encountered, the function returns NULL.</dd></dl>
<p>The returned structure is owned by the PortAudio implementation and must not be manipulated or freed. The pointer is only guaranteed to be valid between calls to <a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize()</a> and <a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate()</a>. </p>

</div>
</div>
<a class="anchor" id="aad573f208b60577f21d2777a7c5054e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structPaHostErrorInfo.html">PaHostErrorInfo</a>* Pa_GetLastHostErrorInfo </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return information about the last host error encountered. The error information returned by <a class="el" href="portaudio_8h.html#aad573f208b60577f21d2777a7c5054e0">Pa_GetLastHostErrorInfo()</a> will never be modified asynchronously by errors occurring in other PortAudio owned threads (such as the thread that manages the stream callback.)</p>
<p>This function is provided as a last resort, primarily to enhance debugging by providing clients with access to all available error information.</p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to an immutable structure constraining information about the host error. The values in this structure will only be valid if a PortAudio function has previously returned the paUnanticipatedHostError error code. </dd></dl>

</div>
</div>
<a class="anchor" id="a541ed0b734df2631bc4c229acf92abc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_GetSampleSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the size of a given sample format in bytes.</p>
<dl class="section return"><dt>Returns</dt><dd>The size in bytes of a single sample in the specified format, or paSampleFormatNotSupported if the format is not supported. </dd></dl>

</div>
</div>
<a class="anchor" id="a83b8c624464dd7bb6a01b06ab596c115"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Pa_GetStreamCpuLoad </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve CPU usage information for the specified stream. The "CPU Load" is a fraction of total CPU time consumed by a callback stream's audio processing routines including, but not limited to the client supplied stream callback. This function does not work with blocking read/write streams.</p>
<p>This function may be called from the stream callback function or the application.</p>
<dl class="section return"><dt>Returns</dt><dd>A floating point value, typically between 0.0 and 1.0, where 1.0 indicates that the stream callback is consuming the maximum number of CPU cycles possible to maintain real-time operation. A value of 0.5 would imply that PortAudio and the stream callback was consuming roughly 50% of the available CPU time. The return value may exceed 1.0. A value of 0.0 will always be returned for a blocking read/write stream, or if an error occurs. </dd></dl>

</div>
</div>
<a class="anchor" id="a290c1596fb9c8bab22a28d3ca75ea321"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a> Pa_GetStreamHostApiType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the host type handling an open stream.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value representing the host API type handling an open stream or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered. </dd></dl>

</div>
</div>
<a class="anchor" id="a3d9c4cbda4e9f381b76f287c3de8a758"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structPaStreamInfo.html">PaStreamInfo</a>* Pa_GetStreamInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve a pointer to a <a class="el" href="structPaStreamInfo.html">PaStreamInfo</a> structure containing information about the specified stream. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to an immutable <a class="el" href="structPaStreamInfo.html">PaStreamInfo</a> structure. If the stream parameter is invalid, or an error is encountered, the function returns NULL.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>A pointer to an open stream previously created with Pa_OpenStream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>PortAudio manages the memory referenced by the returned pointer, the client must not manipulate or free the memory. The pointer is only guaranteed to be valid until the specified stream is closed.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structPaStreamInfo.html">PaStreamInfo</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad04c33f045fa58d7b705b56b1fd3e816"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">signed long Pa_GetStreamReadAvailable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the number of frames that can be read from the stream without waiting.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value representing the maximum number of frames that can be read from the stream without blocking or busy waiting or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered. </dd></dl>

</div>
</div>
<a class="anchor" id="a2b3fb60e6949f37f7f134105ff425749"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#af17a7e6d0471a23071acf8dbd7bbe4bd">PaTime</a> Pa_GetStreamTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the current time in seconds for a stream according to the same clock used to generate callback <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a> timestamps. The time values are monotonically increasing and have unspecified origin.</p>
<p>Pa_GetStreamTime returns valid time values for the entire life of the stream, from when the stream is opened until it is closed. Starting and stopping the stream does not affect the passage of time returned by Pa_GetStreamTime.</p>
<p>This time may be used for synchronizing other events to the audio stream, for example synchronizing audio to MIDI.</p>
<dl class="section return"><dt>Returns</dt><dd>The stream's current time in seconds, or 0 if an error occurred.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#af17a7e6d0471a23071acf8dbd7bbe4bd">PaTime</a>, <a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a>, <a class="el" href="structPaStreamCallbackTimeInfo.html">PaStreamCallbackTimeInfo</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a25595acf48733ec32045aa189c3caa61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">signed long Pa_GetStreamWriteAvailable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the number of frames that can be written to the stream without waiting.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns a non-negative value representing the maximum number of frames that can be written to the stream without blocking or busy waiting or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered. </dd></dl>

</div>
</div>
<a class="anchor" id="a66da08bcf908e0849c62a6b47f50d7b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Pa_GetVersion </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve the release number of the currently running PortAudio build, eg 1900. </p>

</div>
</div>
<a class="anchor" id="a28f3fd9e6d9f933cc695abea71c4b445"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* Pa_GetVersionText </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieve a textual description of the current PortAudio build, eg "PortAudio V19-devel 13 October 2002". </p>

</div>
</div>
<a class="anchor" id="a54f306b5e5258323c95a27c5722258cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#ad79317e65bde63d76c4b8e711ac5a361">PaDeviceIndex</a> Pa_HostApiDeviceIndexToDeviceIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a>&#160;</td>
          <td class="paramname"><em>hostApi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hostApiDeviceIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Convert a host-API-specific device index to standard PortAudio device index. This function may be used in conjunction with the deviceCount field of <a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> to enumerate all devices for the specified host API.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hostApi</td><td>A valid host API index ranging from 0 to (<a class="el" href="portaudio_8h.html#a19dbdb7c8702e3f4bfc0cdb99dac3dd9">Pa_GetHostApiCount()</a>-1)</td></tr>
    <tr><td class="paramname">hostApiDeviceIndex</td><td>A valid per-host device index in the range 0 to (Pa_GetHostApiInfo(hostApi)-&gt;deviceCount-1)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A non-negative PaDeviceIndex ranging from 0 to (<a class="el" href="portaudio_8h.html#acfe4d3c5ec1a343f459981bfa2057f8d">Pa_GetDeviceCount()</a>-1) or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered.</dd></dl>
<p>A paInvalidHostApi error code indicates that the host API index specified by the hostApi parameter is out of range.</p>
<p>A paInvalidDevice error code indicates that the hostApiDeviceIndex parameter is out of range.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structPaHostApiInfo.html">PaHostApiInfo</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a081c3975126d20b4226facfb7ba0620f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#aeef6da084c57c70aa94be97411e19930">PaHostApiIndex</a> Pa_HostApiTypeIdToHostApiIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a8eaebe3d39c5ea45598da8f86dc2e5ae">PaHostApiTypeId</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Convert a static host API unique identifier, into a runtime host API index.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>A unique host API identifier belonging to the PaHostApiTypeId enumeration.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A valid PaHostApiIndex ranging from 0 to (<a class="el" href="portaudio_8h.html#a19dbdb7c8702e3f4bfc0cdb99dac3dd9">Pa_GetHostApiCount()</a>-1) or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered.</dd></dl>
<p>The paHostApiNotFound error code indicates that the host API specified by the type parameter is not available.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#ae247ec252e84112170079ece319fc42c">PaHostApiTypeId</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abed859482d156622d9332dff9b2d89da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_Initialize </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Library initialization function - call this before using PortAudio. This function initializes internal data structures and prepares underlying host APIs for use. With the exception of <a class="el" href="portaudio_8h.html#a66da08bcf908e0849c62a6b47f50d7b4">Pa_GetVersion()</a>, <a class="el" href="portaudio_8h.html#a28f3fd9e6d9f933cc695abea71c4b445">Pa_GetVersionText()</a>, and <a class="el" href="portaudio_8h.html#ae606855a611cf29c7d2d7421df5e3b5d">Pa_GetErrorText()</a>, this function MUST be called before using any other PortAudio API functions.</p>
<p>If <a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize()</a> is called multiple times, each successful call must be matched with a corresponding call to <a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate()</a>. Pairs of calls to <a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize()</a>/Pa_Terminate() may overlap, and are not required to be fully nested.</p>
<p>Note that if <a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize()</a> returns an error code, <a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate()</a> should NOT be called.</p>
<dl class="section return"><dt>Returns</dt><dd>paNoError if successful, otherwise an error code indicating the cause of failure.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abdb313743d6efef26cecdae787a2bd3d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_IsFormatSupported </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *&#160;</td>
          <td class="paramname"><em>inputParameters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *&#160;</td>
          <td class="paramname"><em>outputParameters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sampleRate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determine whether it would be possible to open a stream with the specified parameters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inputParameters</td><td>A structure that describes the input parameters used to open a stream. The suggestedLatency field is ignored. See <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> for a description of these parameters. inputParameters must be NULL for output-only streams.</td></tr>
    <tr><td class="paramname">outputParameters</td><td>A structure that describes the output parameters used to open a stream. The suggestedLatency field is ignored. See <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> for a description of these parameters. outputParameters must be NULL for input-only streams.</td></tr>
    <tr><td class="paramname">sampleRate</td><td>The required sampleRate. For full-duplex streams it is the sample rate for both input and output</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 if the format is supported, and an error code indicating why the format is not supported otherwise. The constant paFormatIsSupported is provided to compare with the return value for success.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a400df642339bf4112333060af6a43c0f">paFormatIsSupported</a>, <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1f8709c4971932643681a6f374c4bb5a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_IsStreamActive </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determine whether the stream is active. A stream is active after a successful call to <a class="el" href="portaudio_8h.html#a7432aadd26c40452da12fa99fc1a047b">Pa_StartStream()</a>, until it becomes inactive either as a result of a call to <a class="el" href="portaudio_8h.html#af18dd60220251286c337631a855e38a0">Pa_StopStream()</a> or <a class="el" href="portaudio_8h.html#a138e57abde4e833c457b64895f638a25">Pa_AbortStream()</a>, or as a result of a return value other than paContinue from the stream callback. In the latter case, the stream is considered inactive after the last buffer has finished playing.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns one (1) when the stream is active (ie playing or recording audio), zero (0) when not playing or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#af18dd60220251286c337631a855e38a0">Pa_StopStream</a>, <a class="el" href="portaudio_8h.html#a138e57abde4e833c457b64895f638a25">Pa_AbortStream</a>, <a class="el" href="portaudio_8h.html#a52d778c985ae9d566de7e13529cc771f">Pa_IsStreamStopped</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a52d778c985ae9d566de7e13529cc771f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_IsStreamStopped </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determine whether the stream is stopped. A stream is considered to be stopped prior to a successful call to Pa_StartStream and after a successful call to Pa_StopStream or Pa_AbortStream. If a stream callback returns a value other than paContinue the stream is NOT considered to be stopped.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns one (1) when the stream is stopped, zero (0) when the stream is running or, a PaErrorCode (which are always negative) if PortAudio is not initialized or an error is encountered.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#af18dd60220251286c337631a855e38a0">Pa_StopStream</a>, <a class="el" href="portaudio_8h.html#a138e57abde4e833c457b64895f638a25">Pa_AbortStream</a>, <a class="el" href="portaudio_8h.html#a1f8709c4971932643681a6f374c4bb5a">Pa_IsStreamActive</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0a12735ac191200f696a43b87667b714"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_OpenDefaultStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> **&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numInputChannels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numOutputChannels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a4582d93c2c2e60e12be3d74c5fe00b96">PaSampleFormat</a>&#160;</td>
          <td class="paramname"><em>sampleFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sampleRate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>framesPerBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> *&#160;</td>
          <td class="paramname"><em>streamCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A simplified version of <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a> that opens the default input and/or output devices.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The address of a PaStream pointer which will receive a pointer to the newly opened stream.</td></tr>
    <tr><td class="paramname">numInputChannels</td><td>The number of channels of sound that will be supplied to the stream callback or returned by Pa_ReadStream. It can range from 1 to the value of maxInputChannels in the <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a> record for the default input device. If 0 the stream is opened as an output-only stream.</td></tr>
    <tr><td class="paramname">numOutputChannels</td><td>The number of channels of sound to be delivered to the stream callback or passed to Pa_WriteStream. It can range from 1 to the value of maxOutputChannels in the <a class="el" href="structPaDeviceInfo.html">PaDeviceInfo</a> record for the default output device. If 0 the stream is opened as an output-only stream.</td></tr>
    <tr><td class="paramname">sampleFormat</td><td>The sample format of both the input and output buffers provided to the callback or passed to and from Pa_ReadStream and Pa_WriteStream. sampleFormat may be any of the formats described by the PaSampleFormat enumeration.</td></tr>
    <tr><td class="paramname">sampleRate</td><td>Same as Pa_OpenStream parameter of the same name. </td></tr>
    <tr><td class="paramname">framesPerBuffer</td><td>Same as Pa_OpenStream parameter of the same name. </td></tr>
    <tr><td class="paramname">streamCallback</td><td>Same as Pa_OpenStream parameter of the same name. </td></tr>
    <tr><td class="paramname">userData</td><td>Same as Pa_OpenStream parameter of the same name.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>As for Pa_OpenStream</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream</a>, <a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a443ad16338191af364e3be988014cbbe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_OpenStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> **&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *&#160;</td>
          <td class="paramname"><em>inputParameters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> *&#160;</td>
          <td class="paramname"><em>outputParameters</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sampleRate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>framesPerBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a37c7ac3ace7d2dd1430f40ecdee4ebb6">PaStreamFlags</a>&#160;</td>
          <td class="paramname"><em>streamFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a> *&#160;</td>
          <td class="paramname"><em>streamCallback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Opens a stream for either input, output or both.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The address of a PaStream pointer which will receive a pointer to the newly opened stream.</td></tr>
    <tr><td class="paramname">inputParameters</td><td>A structure that describes the input parameters used by the opened stream. See <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> for a description of these parameters. inputParameters must be NULL for output-only streams.</td></tr>
    <tr><td class="paramname">outputParameters</td><td>A structure that describes the output parameters used by the opened stream. See <a class="el" href="structPaStreamParameters.html">PaStreamParameters</a> for a description of these parameters. outputParameters must be NULL for input-only streams.</td></tr>
    <tr><td class="paramname">sampleRate</td><td>The desired sampleRate. For full-duplex streams it is the sample rate for both input and output</td></tr>
    <tr><td class="paramname">framesPerBuffer</td><td>The number of frames passed to the stream callback function, or the preferred block granularity for a blocking read/write stream. The special value paFramesPerBufferUnspecified (0) may be used to request that the stream callback will receive an optimal (and possibly varying) number of frames based on host requirements and the requested latency settings. Note: With some host APIs, the use of non-zero framesPerBuffer for a callback stream may introduce an additional layer of buffering which could introduce additional latency. PortAudio guarantees that the additional latency will be kept to the theoretical minimum however, it is strongly recommended that a non-zero framesPerBuffer value only be used when your algorithm requires a fixed number of frames per stream callback.</td></tr>
    <tr><td class="paramname">streamFlags</td><td>Flags which modify the behavior of the streaming process. This parameter may contain a combination of flags ORed together. Some flags may only be relevant to certain buffer formats.</td></tr>
    <tr><td class="paramname">streamCallback</td><td>A pointer to a client supplied function that is responsible for processing and filling input and output buffers. If this parameter is NULL the stream will be opened in 'blocking read/write' mode. In blocking mode, the client can receive sample data using Pa_ReadStream and write sample data using Pa_WriteStream, the number of samples that may be read or written without blocking is returned by Pa_GetStreamReadAvailable and Pa_GetStreamWriteAvailable respectively.</td></tr>
    <tr><td class="paramname">userData</td><td>A client supplied pointer which is passed to the stream callback function. It could for example, contain a pointer to instance data necessary for processing the audio buffers. This parameter is ignored if streamCallback is NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Upon success <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a> returns paNoError and places a pointer to a valid PaStream in the stream argument. The stream is inactive (stopped). If a call to <a class="el" href="portaudio_8h.html#a443ad16338191af364e3be988014cbbe">Pa_OpenStream()</a> fails, a non-zero error code is returned (see PaError for possible error codes) and the value of stream is invalid.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="structPaStreamParameters.html">PaStreamParameters</a>, <a class="el" href="portaudio_8h.html#a8a60fb2a5ec9cbade3f54a9c978e2710">PaStreamCallback</a>, <a class="el" href="portaudio_8h.html#a0b62d4b74b5d3d88368e9e4c0b8b2dc7">Pa_ReadStream</a>, <a class="el" href="portaudio_8h.html#a075a6efb503a728213bdae24347ed27d">Pa_WriteStream</a>, <a class="el" href="portaudio_8h.html#ad04c33f045fa58d7b705b56b1fd3e816">Pa_GetStreamReadAvailable</a>, <a class="el" href="portaudio_8h.html#a25595acf48733ec32045aa189c3caa61">Pa_GetStreamWriteAvailable</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0b62d4b74b5d3d88368e9e4c0b8b2dc7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_ReadStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>frames</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read samples from an input stream. The function doesn't return until the entire buffer has been filled - this may involve waiting for the operating system to supply the data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>A pointer to an open stream previously created with Pa_OpenStream.</td></tr>
    <tr><td class="paramname">buffer</td><td>A pointer to a buffer of sample frames. The buffer contains samples in the format specified by the inputParameters-&gt;sampleFormat field used to open the stream, and the number of channels specified by inputParameters-&gt;numChannels. If non-interleaved samples were requested using the paNonInterleaved sample format flag, buffer is a pointer to the first element of an array of buffer pointers, one non-interleaved buffer for each channel.</td></tr>
    <tr><td class="paramname">frames</td><td>The number of frames to be read into buffer. This parameter is not constrained to a specific range, however high performance applications will want to match this parameter to the framesPerBuffer parameter used when opening the stream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>On success PaNoError will be returned, or PaInputOverflowed if input data was discarded by PortAudio after the previous call and before this call. </dd></dl>

</div>
</div>
<a class="anchor" id="aa11e7b06b2cde8621551f5d527965838"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_SetStreamFinishedCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#ab2530ee0cb756c67726f9074d3482ef2">PaStreamFinishedCallback</a> *&#160;</td>
          <td class="paramname"><em>streamFinishedCallback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Register a stream finished callback function which will be called when the stream becomes inactive. See the description of PaStreamFinishedCallback for further details about when the callback will be called.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>a pointer to a PaStream that is in the stopped state - if the stream is not stopped, the stream's finished callback will remain unchanged and an error code will be returned.</td></tr>
    <tr><td class="paramname">streamFinishedCallback</td><td>a pointer to a function with the same signature as PaStreamFinishedCallback, that will be called when the stream becomes inactive. Passing NULL for this parameter will un-register a previously registered stream finished callback function.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success returns paNoError, otherwise an error code indicating the cause of the error.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#ab2530ee0cb756c67726f9074d3482ef2">PaStreamFinishedCallback</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1b3c20044c9401c42add29475636e83d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Pa_Sleep </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>msec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Put the caller to sleep for at least 'msec' milliseconds. This function is provided only as a convenience for authors of portable code (such as the tests and examples in the PortAudio distribution.)</p>
<p>The function may sleep longer than requested so don't rely on this for accurate musical timing. </p>

</div>
</div>
<a class="anchor" id="a7432aadd26c40452da12fa99fc1a047b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_StartStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Commences audio processing. </p>

</div>
</div>
<a class="anchor" id="af18dd60220251286c337631a855e38a0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_StopStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Terminates audio processing. It waits until all pending audio buffers have been played before it returns. </p>

</div>
</div>
<a class="anchor" id="a0db317604e916e8bd6098e60e6237221"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_Terminate </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Library termination function - call this when finished using PortAudio. This function deallocates all resources allocated by PortAudio since it was initialized by a call to <a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize()</a>. In cases where Pa_Initialise() has been called multiple times, each call must be matched with a corresponding call to <a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate()</a>. The final matching call to <a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate()</a> will automatically close any PortAudio streams that are still open.</p>
<p><a class="el" href="portaudio_8h.html#a0db317604e916e8bd6098e60e6237221">Pa_Terminate()</a> MUST be called before exiting a program which uses PortAudio. Failure to do so may result in serious resource leaks, such as audio devices not being available until the next reboot.</p>
<dl class="section return"><dt>Returns</dt><dd>paNoError if successful, otherwise an error code indicating the cause of failure.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="portaudio_8h.html#abed859482d156622d9332dff9b2d89da">Pa_Initialize</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a075a6efb503a728213bdae24347ed27d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="portaudio_8h.html#a4949e4a8ef9f9dbe8cbee414ce69841d">PaError</a> Pa_WriteStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="portaudio_8h.html#a19874734f89958fccf86785490d53b4c">PaStream</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&#160;</td>
          <td class="paramname"><em>frames</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write samples to an output stream. This function doesn't return until the entire buffer has been consumed - this may involve waiting for the operating system to consume the data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>A pointer to an open stream previously created with Pa_OpenStream.</td></tr>
    <tr><td class="paramname">buffer</td><td>A pointer to a buffer of sample frames. The buffer contains samples in the format specified by the outputParameters-&gt;sampleFormat field used to open the stream, and the number of channels specified by outputParameters-&gt;numChannels. If non-interleaved samples were requested using the paNonInterleaved sample format flag, buffer is a pointer to the first element of an array of buffer pointers, one non-interleaved buffer for each channel.</td></tr>
    <tr><td class="paramname">frames</td><td>The number of frames to be written from buffer. This parameter is not constrained to a specific range, however high performance applications will want to match this parameter to the framesPerBuffer parameter used when opening the stream.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>On success PaNoError will be returned, or paOutputUnderflowed if additional output data was inserted after the previous call and before this call. </dd></dl>

</div>
</div>
</div><!-- contents -->
<hr size="1"><address style="text-align: right;"><small>Generated for PortAudio by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>1.8.3.1</small></address>
</body>
</html>