MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/share/doc/alsa-lib-devel-1.0.17/lib64/html/pcm__ioplug_8h-source.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ALSA project - the C library reference: /builddir/build/BUILD/alsa-lib-1.0.17a/include/pcm_ioplug.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>/builddir/build/BUILD/alsa-lib-1.0.17a/include/pcm_ioplug.h</h1><a href="pcm__ioplug_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00010"></a>00010 <span class="comment">/*</span>
<a name="l00011"></a>00011 <span class="comment"> * ALSA external PCM plugin SDK</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * Copyright (c) 2005 Takashi Iwai &lt;tiwai@suse.de&gt;</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> *   This library is free software; you can redistribute it and/or modify</span>
<a name="l00016"></a>00016 <span class="comment"> *   it under the terms of the GNU Lesser General Public License as</span>
<a name="l00017"></a>00017 <span class="comment"> *   published by the Free Software Foundation; either version 2.1 of</span>
<a name="l00018"></a>00018 <span class="comment"> *   the License, or (at your option) any later version.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> *   This program is distributed in the hope that it will be useful,</span>
<a name="l00021"></a>00021 <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00022"></a>00022 <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00023"></a>00023 <span class="comment"> *   GNU Lesser General Public License for more details.</span>
<a name="l00024"></a>00024 <span class="comment"> *</span>
<a name="l00025"></a>00025 <span class="comment"> *   You should have received a copy of the GNU Lesser General Public</span>
<a name="l00026"></a>00026 <span class="comment"> *   License along with this library; if not, write to the Free Software</span>
<a name="l00027"></a>00027 <span class="comment"> *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA</span>
<a name="l00028"></a>00028 <span class="comment"> *</span>
<a name="l00029"></a>00029 <span class="comment"> */</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef __ALSA_PCM_IOPLUG_H</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_PCM_IOPLUG_H</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="keyword">enum</span> {
<a name="l00043"></a>00043         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce6344b124616c2b7bedb93dd6ac721adea">SND_PCM_IOPLUG_HW_ACCESS</a> = 0,   
<a name="l00044"></a>00044         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce6ffddbc447f96d1624e6e4434f15303b5">SND_PCM_IOPLUG_HW_FORMAT</a>,       
<a name="l00045"></a>00045         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce6016aa290f201fb45d5b906f7948f8f87">SND_PCM_IOPLUG_HW_CHANNELS</a>,     
<a name="l00046"></a>00046         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce620b4afa309f048000c0b0db29fdd9c2c">SND_PCM_IOPLUG_HW_RATE</a>,         
<a name="l00047"></a>00047         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce66955ba63fe4d8f72684a915f79378ae7">SND_PCM_IOPLUG_HW_PERIOD_BYTES</a>, 
<a name="l00048"></a>00048         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce6c27c30fd82a296198d81e650ea671095">SND_PCM_IOPLUG_HW_BUFFER_BYTES</a>, 
<a name="l00049"></a>00049         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce6b17e59ed7d6fe93bfdbb68f6f5372606">SND_PCM_IOPLUG_HW_PERIODS</a>,      
<a name="l00050"></a><a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce664782225d142adc39768f3704ca9eb34">00050</a>         <a class="code" href="group___p_c_m___i_o_plug.html#gg8b894045f0f7324f42f2ae7819982ce664782225d142adc39768f3704ca9eb34">SND_PCM_IOPLUG_HW_PARAMS</a>        
<a name="l00051"></a>00051 };
<a name="l00052"></a>00052         
<a name="l00054"></a><a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">00054</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structsnd__pcm__ioplug.html">snd_pcm_ioplug</a> <a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a>;
<a name="l00056"></a><a class="code" href="group___p_c_m___i_o_plug.html#gcf809afcbb987e4599341c11541301a1">00056</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structsnd__pcm__ioplug__callback.html">snd_pcm_ioplug_callback</a> <a class="code" href="group___p_c_m___i_o_plug.html#gcf809afcbb987e4599341c11541301a1">snd_pcm_ioplug_callback_t</a>;
<a name="l00057"></a>00057 
<a name="l00061"></a><a class="code" href="group___p_c_m___i_o_plug.html#g3d2a131f7056cffa547d8cc55f79f118">00061</a> <span class="preprocessor">#define SND_PCM_IOPLUG_FLAG_LISTED      (1&lt;&lt;0)          </span><span class="comment">/* list up this PCM */</span>
<a name="l00062"></a>00062 <span class="preprocessor">#define SND_PCM_IOPLUG_FLAG_MONOTONIC   (1&lt;&lt;1)          </span><span class="comment">/* monotonic timestamps */</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="comment">/*</span>
<a name="l00065"></a>00065 <span class="comment"> * Protocol version</span>
<a name="l00066"></a>00066 <span class="comment"> */</span>
<a name="l00067"></a><a class="code" href="group___p_c_m___i_o_plug.html#g4e952007414f61e1462933304822fb67">00067</a> <span class="preprocessor">#define SND_PCM_IOPLUG_VERSION_MAJOR    1       </span>
<a name="l00068"></a><a class="code" href="group___p_c_m___i_o_plug.html#g1b3c4df782f8ab8c7fb9b7b7c4b5107c">00068</a> <span class="preprocessor">#define SND_PCM_IOPLUG_VERSION_MINOR    0       </span>
<a name="l00069"></a><a class="code" href="group___p_c_m___i_o_plug.html#g5732e20a2f4802c641ca54a2f99d4f26">00069</a> <span class="preprocessor">#define SND_PCM_IOPLUG_VERSION_TINY     1       </span>
<a name="l00073"></a><a class="code" href="group___p_c_m___i_o_plug.html#gf701c23e5dd85848e7775492bc138e45">00073</a> <span class="preprocessor">#define SND_PCM_IOPLUG_VERSION          ((SND_PCM_IOPLUG_VERSION_MAJOR&lt;&lt;16) |\</span>
<a name="l00074"></a>00074 <span class="preprocessor">                                         (SND_PCM_IOPLUG_VERSION_MINOR&lt;&lt;8) |\</span>
<a name="l00075"></a>00075 <span class="preprocessor">                                         (SND_PCM_IOPLUG_VERSION_TINY))</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00078"></a><a class="code" href="structsnd__pcm__ioplug.html">00078</a> <span class="keyword">struct </span><a class="code" href="structsnd__pcm__ioplug.html">snd_pcm_ioplug</a> {
<a name="l00083"></a><a class="code" href="structsnd__pcm__ioplug.html#c5292533d5c765d8c779630328fbdb82">00083</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#c5292533d5c765d8c779630328fbdb82">version</a>;
<a name="l00087"></a><a class="code" href="structsnd__pcm__ioplug.html#8f60b52e971d55e622c3529f4e6ffac6">00087</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structsnd__pcm__ioplug.html#8f60b52e971d55e622c3529f4e6ffac6">name</a>;
<a name="l00088"></a><a class="code" href="structsnd__pcm__ioplug.html#9ce5e8105c51b3f4d045f8de51c67166">00088</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#9ce5e8105c51b3f4d045f8de51c67166">flags</a>;     
<a name="l00089"></a><a class="code" href="structsnd__pcm__ioplug.html#7a8b7d8370308b5d806fde12b02167ac">00089</a>         <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#7a8b7d8370308b5d806fde12b02167ac">poll_fd</a>;            
<a name="l00090"></a><a class="code" href="structsnd__pcm__ioplug.html#de7e443473a31d0531b2453eb17531dc">00090</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#de7e443473a31d0531b2453eb17531dc">poll_events</a>;       
<a name="l00091"></a><a class="code" href="structsnd__pcm__ioplug.html#2917cfb8120c68a0671b58d1e0463451">00091</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#2917cfb8120c68a0671b58d1e0463451">mmap_rw</a>;           
<a name="l00095"></a><a class="code" href="structsnd__pcm__ioplug.html#42c1d6854e32bd58d43e23a667ed3d30">00095</a>         <span class="keyword">const</span> <a class="code" href="group___p_c_m___i_o_plug.html#gcf809afcbb987e4599341c11541301a1">snd_pcm_ioplug_callback_t</a> *<a class="code" href="structsnd__pcm__ioplug.html#42c1d6854e32bd58d43e23a667ed3d30">callback</a>;
<a name="l00099"></a><a class="code" href="structsnd__pcm__ioplug.html#101d13fd85ff50f24c5a57bbb0a4f382">00099</a>         <span class="keywordtype">void</span> *<a class="code" href="structsnd__pcm__ioplug.html#101d13fd85ff50f24c5a57bbb0a4f382">private_data</a>;
<a name="l00103"></a><a class="code" href="structsnd__pcm__ioplug.html#6cbfd539c1bc21ed6429abe1a6a13282">00103</a>         <a class="code" href="group___p_c_m.html#gb5676348e7618b444e28907607660cef">snd_pcm_t</a> *<a class="code" href="structsnd__pcm__ioplug.html#6cbfd539c1bc21ed6429abe1a6a13282">pcm</a>;
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="structsnd__pcm__ioplug.html#87b6e8242c1c5cee78655bdf04dfd5c6">00105</a>         <a class="code" href="group___p_c_m.html#g854f0966bd0d7248ed3d9e5c293136ed">snd_pcm_stream_t</a> <a class="code" href="structsnd__pcm__ioplug.html#87b6e8242c1c5cee78655bdf04dfd5c6">stream</a>;        
<a name="l00106"></a><a class="code" href="structsnd__pcm__ioplug.html#56bf2a5f2f42da56924cca0101f05305">00106</a>         <a class="code" href="group___p_c_m.html#gd08aecb11dff7aa18f2480f8ab1b72d1">snd_pcm_state_t</a> <a class="code" href="structsnd__pcm__ioplug.html#56bf2a5f2f42da56924cca0101f05305">state</a>;          
<a name="l00107"></a><a class="code" href="structsnd__pcm__ioplug.html#2a06405865eb7b19aea3130fa64594c8">00107</a>         <span class="keyword">volatile</span> <a class="code" href="group___p_c_m.html#g2c6283616ba424092089264ae7e193e6">snd_pcm_uframes_t</a> <a class="code" href="structsnd__pcm__ioplug.html#2a06405865eb7b19aea3130fa64594c8">appl_ptr</a>;    
<a name="l00108"></a><a class="code" href="structsnd__pcm__ioplug.html#6b99bb1d265455f7da589cc850444886">00108</a>         <span class="keyword">volatile</span> <a class="code" href="group___p_c_m.html#g2c6283616ba424092089264ae7e193e6">snd_pcm_uframes_t</a> <a class="code" href="structsnd__pcm__ioplug.html#6b99bb1d265455f7da589cc850444886">hw_ptr</a>;      
<a name="l00109"></a><a class="code" href="structsnd__pcm__ioplug.html#26a4f0627da2b7259122f542b2b4980a">00109</a>         <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#26a4f0627da2b7259122f542b2b4980a">nonblock</a>;                   
<a name="l00111"></a><a class="code" href="structsnd__pcm__ioplug.html#1ffb95082fcae66dac8eeffe7715779e">00111</a>         <a class="code" href="group___p_c_m.html#gb838921f42075ebe3f8744889a8ecd87">snd_pcm_access_t</a> <a class="code" href="structsnd__pcm__ioplug.html#1ffb95082fcae66dac8eeffe7715779e">access</a>;        
<a name="l00112"></a><a class="code" href="structsnd__pcm__ioplug.html#197153db868d6337ebf05ee017a03858">00112</a>         <a class="code" href="group___p_c_m.html#g5ae31ebbea7972ce97a498040df1839e">snd_pcm_format_t</a> <a class="code" href="structsnd__pcm__ioplug.html#197153db868d6337ebf05ee017a03858">format</a>;        
<a name="l00113"></a><a class="code" href="structsnd__pcm__ioplug.html#0f00e43e48f66483da3d686d640801e7">00113</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#0f00e43e48f66483da3d686d640801e7">channels</a>;          
<a name="l00114"></a><a class="code" href="structsnd__pcm__ioplug.html#8e381bdd1f75a1645640974b95e95ff3">00114</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structsnd__pcm__ioplug.html#8e381bdd1f75a1645640974b95e95ff3">rate</a>;              
<a name="l00115"></a><a class="code" href="structsnd__pcm__ioplug.html#bd8e931d6595717df83961a7d629779f">00115</a>         <a class="code" href="group___p_c_m.html#g2c6283616ba424092089264ae7e193e6">snd_pcm_uframes_t</a> <a class="code" href="structsnd__pcm__ioplug.html#bd8e931d6595717df83961a7d629779f">period_size</a>;  
<a name="l00116"></a><a class="code" href="structsnd__pcm__ioplug.html#c5109f87a1267d8be24ab3b5b8755720">00116</a>         <a class="code" href="group___p_c_m.html#g2c6283616ba424092089264ae7e193e6">snd_pcm_uframes_t</a> <a class="code" href="structsnd__pcm__ioplug.html#c5109f87a1267d8be24ab3b5b8755720">buffer_size</a>;  
<a name="l00117"></a>00117 };
<a name="l00118"></a>00118 
<a name="l00120"></a><a class="code" href="structsnd__pcm__ioplug__callback.html">00120</a> <span class="keyword">struct </span><a class="code" href="structsnd__pcm__ioplug__callback.html">snd_pcm_ioplug_callback</a> {
<a name="l00124"></a>00124         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#f5a9d40ddfc4f37e7fe97f01f276f80b">start</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00128"></a>00128         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#9509cf58397bed729f3036e0fab93b7d">stop</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00132"></a>00132         <a class="code" href="group___p_c_m.html#g842d603aa3a4bc5b4596b42490104da3">snd_pcm_sframes_t</a> (*<a class="code" href="structsnd__pcm__ioplug__callback.html#4bc5165ea02c529084fee3e1cc3363fb">pointer</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00136"></a>00136         <a class="code" href="group___p_c_m.html#g842d603aa3a4bc5b4596b42490104da3">snd_pcm_sframes_t</a> (*<a class="code" href="structsnd__pcm__ioplug__callback.html#bbb83746a74947d068487aa1f3bb0153">transfer</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io,
<a name="l00137"></a>00137                                       <span class="keyword">const</span> <a class="code" href="struct__snd__pcm__channel__area.html">snd_pcm_channel_area_t</a> *areas,
<a name="l00138"></a>00138                                       <a class="code" href="group___p_c_m.html#g2c6283616ba424092089264ae7e193e6">snd_pcm_uframes_t</a> offset,
<a name="l00139"></a>00139                                       <a class="code" href="group___p_c_m.html#g2c6283616ba424092089264ae7e193e6">snd_pcm_uframes_t</a> size);
<a name="l00143"></a>00143         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#7a1ee4e7fb941df14e482139a547cdca">close</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00147"></a>00147         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#5d22f30ddbb4f28b486e60de87cd465c">hw_params</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <a class="code" href="group___p_c_m.html#g232a2e2b6bb7bb2dca2885eec2e095b3">snd_pcm_hw_params_t</a> *params);
<a name="l00151"></a>00151         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#f6fec6180a1c581c2c229ecf61dda2ba">hw_free</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00155"></a>00155         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#8c317c49e0d00d594a99d20fc7c43228">sw_params</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <a class="code" href="group___p_c_m.html#g999c8c52d8a8d521f1f2cfcd902d7098">snd_pcm_sw_params_t</a> *params);
<a name="l00159"></a>00159         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#d088a96f38026ad957a27c8451514906">prepare</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00163"></a>00163         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#3637c26ba55c5c115ba6848421dca730">drain</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00167"></a>00167         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#23d9897a869b101ec25621057abb56f9">pause</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <span class="keywordtype">int</span> enable);
<a name="l00171"></a>00171         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#075cec38dac77fa8e333debe59f7588f">resume</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00175"></a>00175         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#8763329157b3e7f4b389ebdfa4fa532d">poll_descriptors_count</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00179"></a>00179         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#55617fbcf1b7f3bb3070b24d5319cbb8">poll_descriptors</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <span class="keyword">struct </span>pollfd *pfd, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> space);
<a name="l00183"></a>00183         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#8f36a51c55e4a9f717db09bc95c76bbb">poll_revents</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <span class="keyword">struct </span>pollfd *pfd, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nfds, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *revents);
<a name="l00187"></a>00187         void (*<a class="code" href="structsnd__pcm__ioplug__callback.html#4c006db21b7f7b36c5790b70b50ad70e">dump</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <a class="code" href="group___output.html#gfcb4f6ed600e8daf18d5d5d8623dda50">snd_output_t</a> *out);
<a name="l00191"></a>00191         int (*<a class="code" href="structsnd__pcm__ioplug__callback.html#25f0bb5e0376d0d50c94cfb1bc854e37">delay</a>)(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <a class="code" href="group___p_c_m.html#g842d603aa3a4bc5b4596b42490104da3">snd_pcm_sframes_t</a> *delayp);
<a name="l00192"></a>00192 };
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 
<a name="l00195"></a>00195 <span class="keywordtype">int</span> <a class="code" href="group___p_c_m___i_o_plug.html#g49f570ce699bd75885756372459ff351">snd_pcm_ioplug_create</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,
<a name="l00196"></a>00196                           <a class="code" href="group___p_c_m.html#g854f0966bd0d7248ed3d9e5c293136ed">snd_pcm_stream_t</a> stream, <span class="keywordtype">int</span> mode);
<a name="l00197"></a>00197 <span class="keywordtype">int</span> <a class="code" href="group___p_c_m___i_o_plug.html#g113b8257d5ffaf9d3fb12e6358dcd47e">snd_pcm_ioplug_delete</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 <span class="comment">/* update poll_fd and mmap_rw */</span>
<a name="l00200"></a>00200 <span class="keywordtype">int</span> <a class="code" href="group___p_c_m___i_o_plug.html#gcff12184ff68f697a3f549ed1e194ca6">snd_pcm_ioplug_reinit_status</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *ioplug);
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="comment">/* get a mmap area (for mmap_rw only) */</span>
<a name="l00203"></a>00203 <span class="keyword">const</span> <a class="code" href="struct__snd__pcm__channel__area.html">snd_pcm_channel_area_t</a> *<a class="code" href="group___p_c_m___i_o_plug.html#ge7a107c6c6a1dfd65a29e798d5027a5c">snd_pcm_ioplug_mmap_areas</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *ioplug);
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 <span class="comment">/* clear hw_parameter setting */</span>
<a name="l00206"></a>00206 <span class="keywordtype">void</span> <a class="code" href="group___p_c_m___i_o_plug.html#g5086cedef6f4b675f77726a4cc0fe3fe">snd_pcm_ioplug_params_reset</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io);
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 <span class="comment">/* hw_parameter setting */</span>
<a name="l00209"></a>00209 <span class="keywordtype">int</span> <a class="code" href="group___p_c_m___i_o_plug.html#g245d494a0d1d8c6100aceeb6b901f3d3">snd_pcm_ioplug_set_param_minmax</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> min, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> max);
<a name="l00210"></a>00210 <span class="keywordtype">int</span> <a class="code" href="group___p_c_m___i_o_plug.html#g94f9752b15b9746e18f59fa88b508853">snd_pcm_ioplug_set_param_list</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *io, <span class="keywordtype">int</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> num_list, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *list);
<a name="l00211"></a>00211 
<a name="l00212"></a>00212 <span class="comment">/* change PCM status */</span>
<a name="l00213"></a>00213 <span class="keywordtype">int</span> <a class="code" href="group___p_c_m___i_o_plug.html#g0a3d6a4457fb786f1765b02cafa0831b">snd_pcm_ioplug_set_state</a>(<a class="code" href="group___p_c_m___i_o_plug.html#g3bd62d55f4b83f7ad57cae253618aca5">snd_pcm_ioplug_t</a> *ioplug, <a class="code" href="group___p_c_m.html#gd08aecb11dff7aa18f2480f8ab1b72d1">snd_pcm_state_t</a> state);
<a name="l00214"></a>00214 
<a name="l00217"></a>00217 <span class="preprocessor">#endif </span><span class="comment">/* __ALSA_PCM_IOPLUG_H */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jan 20 22:42:09 2009 for ALSA project - the C library reference by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>