<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Software Parameters</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.18 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center> <hr><h1>Software Parameters<br> <small> [<a class="el" href="group___p_c_m.html">PCM Interface</a>]</small> </h1><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Defines</h2></td></tr> <tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a20">snd_pcm_sw_params_alloca</a>(ptr)</td></tr> <tr><td> </td><td><font size=-1><em>allocate an invalid <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> using standard alloca</em> <a href="#a20"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a0">snd_pcm_sw_params_sizeof</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>get size of <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a></em> <a href="#a0"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a1">snd_pcm_sw_params_malloc</a> (<a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> **ptr)</td></tr> <tr><td> </td><td><font size=-1><em>allocate an invalid <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> using standard malloc</em> <a href="#a1"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a2">snd_pcm_sw_params_free</a> (<a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *obj)</td></tr> <tr><td> </td><td><font size=-1><em>frees a previously allocated <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a></em> <a href="#a2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a3">snd_pcm_sw_params_copy</a> (<a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *dst, const <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *src)</td></tr> <tr><td> </td><td><font size=-1><em>copy one <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> to another</em> <a href="#a3"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a4">snd_pcm_sw_params_set_tstamp_mode</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___p_c_m.html#a16">snd_pcm_tstamp_t</a> val)</td></tr> <tr><td> </td><td><font size=-1><em>Set timestamp mode inside a software configuration container.</em> <a href="#a4"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a6">snd_pcm_sw_params_set_sleep_min</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, unsigned int val)</td></tr> <tr><td> </td><td><font size=-1><em>Set minimum number of ticks to sleep inside a software configuration container.</em> <a href="#a6"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a8">snd_pcm_sw_params_set_avail_min</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> val)</td></tr> <tr><td> </td><td><font size=-1><em>Set avail min inside a software configuration container.</em> <a href="#a8"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a10">snd_pcm_sw_params_set_xfer_align</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> val)</td></tr> <tr><td> </td><td><font size=-1><em>Set xfer align inside a software configuration container.</em> <a href="#a10"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a12">snd_pcm_sw_params_set_start_threshold</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> val)</td></tr> <tr><td> </td><td><font size=-1><em>Set start threshold inside a software configuration container.</em> <a href="#a12"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a14">snd_pcm_sw_params_set_stop_threshold</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> val)</td></tr> <tr><td> </td><td><font size=-1><em>Set stop threshold inside a software configuration container.</em> <a href="#a14"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a16">snd_pcm_sw_params_set_silence_threshold</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> val)</td></tr> <tr><td> </td><td><font size=-1><em>Set silence threshold inside a software configuration container.</em> <a href="#a16"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group___p_c_m___s_w___params.html#a18">snd_pcm_sw_params_set_silence_size</a> (<a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> *pcm, <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> *params, <a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> val)</td></tr> <tr><td> </td><td><font size=-1><em>Set silence size inside a software configuration container.</em> <a href="#a18"></a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> See the <a href="pcm.html#pcm">PCM (digital audio) interface</a> page for more details. <hr><h2>Define Documentation</h2> <a name="a20" doxytag="pcm.h::snd_pcm_sw_params_alloca"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define snd_pcm_sw_params_alloca</td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ptr </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> allocate an invalid <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> using standard alloca <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>ptr</em> </td><td> returned pointer </td></tr> </table> </dl><dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="_2test_2latency_8c-example.html#a20">/test/latency.c</a>, and <a class="el" href="_2test_2pcm_8c-example.html#a38">/test/pcm.c</a>.</dl> </td> </tr> </table> <hr><h2>Function Documentation</h2> <a name="a3" doxytag="pcm.h::snd_pcm_sw_params_copy"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void snd_pcm_sw_params_copy </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>dst</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>src</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> copy one <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> to another <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>dst</em> </td><td> pointer to destination </td></tr> <tr><td valign=top><em>src</em> </td><td> pointer to source </td></tr> </table> </dl> </td> </tr> </table> <a name="a2" doxytag="pcm.h::snd_pcm_sw_params_free"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void snd_pcm_sw_params_free </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname1" valign="top" nowrap> <em>obj</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> frees a previously allocated <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pointer</em> </td><td> to object to free </td></tr> </table> </dl> </td> </tr> </table> <a name="a1" doxytag="pcm.h::snd_pcm_sw_params_malloc"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_malloc </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> ** </td> <td class="mdname1" valign="top" nowrap> <em>ptr</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> allocate an invalid <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> using standard malloc <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>ptr</em> </td><td> returned pointer </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 on success otherwise negative error code </dl> </td> </tr> </table> <a name="a8" doxytag="pcm.h::snd_pcm_sw_params_set_avail_min"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_avail_min </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set avail min inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Minimum avail frames to consider PCM ready </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code</dl>Note: This is similar to setting an OSS wakeup point. The valid values for 'val' are determined by the specific hardware. Most PC sound cards can only accept power of 2 frame counts (i.e. 512, 1024, 2048). You cannot use this as a high resolution timer - it is limited to how often the sound card hardware raises an interrupt. Note that you can greatly improve the reponses using <a class="el" href="group___p_c_m___s_w___params.html#a6">Software Parameters</a> where another timing source is used. <dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="_2test_2latency_8c-example.html#a16">/test/latency.c</a>, and <a class="el" href="_2test_2pcm_8c-example.html#a17">/test/pcm.c</a>.</dl> </td> </tr> </table> <a name="a18" doxytag="pcm.h::snd_pcm_sw_params_set_silence_size"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_silence_size </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set silence size inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Silence size in frames (0 for disabled) </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code</dl>A portion of playback buffer is overwritten with silence when playback underrun is nearer than silence threshold (see <a class="el" href="group___p_c_m___s_w___params.html#a16">snd_pcm_sw_params_set_silence_threshold</a>) </td> </tr> </table> <a name="a16" doxytag="pcm.h::snd_pcm_sw_params_set_silence_threshold"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_silence_threshold </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set silence threshold inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Silence threshold in frames </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code</dl>A portion of playback buffer is overwritten with silence (see <a class="el" href="group___p_c_m___s_w___params.html#a18">snd_pcm_sw_params_set_silence_size</a>) when playback underrun is nearer than silence threshold </td> </tr> </table> <a name="a6" doxytag="pcm.h::snd_pcm_sw_params_set_sleep_min"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_sleep_min </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set minimum number of ticks to sleep inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Minimum ticks to sleep or 0 to disable the use of tick timer </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code </dl><dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="_2test_2latency_8c-example.html#a14">/test/latency.c</a>.</dl> </td> </tr> </table> <a name="a12" doxytag="pcm.h::snd_pcm_sw_params_set_start_threshold"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_start_threshold </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set start threshold inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Start threshold in frames </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code</dl>PCM is automatically started when playback frames available to PCM are >= threshold or when requested capture frames are >= threshold <dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="_2test_2latency_8c-example.html#a11">/test/latency.c</a>, and <a class="el" href="_2test_2pcm_8c-example.html#a16">/test/pcm.c</a>.</dl> </td> </tr> </table> <a name="a14" doxytag="pcm.h::snd_pcm_sw_params_set_stop_threshold"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_stop_threshold </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set stop threshold inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Stop threshold in frames </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code</dl>PCM is automatically stopped in <a class="el" href="group___p_c_m.html#a72a111">SND_PCM_STATE_XRUN</a> state when available frames is >= threshold </td> </tr> </table> <a name="a4" doxytag="pcm.h::snd_pcm_sw_params_set_tstamp_mode"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_tstamp_mode </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a16">snd_pcm_tstamp_t</a> </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set timestamp mode inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Timestamp mode </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code </dl> </td> </tr> </table> <a name="a10" doxytag="pcm.h::snd_pcm_sw_params_set_xfer_align"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int snd_pcm_sw_params_set_xfer_align </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group___p_c_m.html#a20">snd_pcm_t</a> * </td> <td class="mdname" nowrap> <em>pcm</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> * </td> <td class="mdname" nowrap> <em>params</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group___p_c_m.html#a17">snd_pcm_uframes_t</a> </td> <td class="mdname" nowrap> <em>val</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set xfer align inside a software configuration container. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pcm</em> </td><td> PCM handle </td></tr> <tr><td valign=top><em>params</em> </td><td> Software configuration container </td></tr> <tr><td valign=top><em>val</em> </td><td> Chunk size (frames are attempted to be transferred in chunks) </td></tr> </table> </dl><dl compact><dt><b>Returns: </b></dt><dd> 0 otherwise a negative error code </dl><dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="_2test_2latency_8c-example.html#a17">/test/latency.c</a>, and <a class="el" href="_2test_2pcm_8c-example.html#a18">/test/pcm.c</a>.</dl> </td> </tr> </table> <a name="a0" doxytag="pcm.h::snd_pcm_sw_params_sizeof"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> size_t snd_pcm_sw_params_sizeof </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> get size of <a class="el" href="group___p_c_m.html#a2">snd_pcm_sw_params_t</a> <p> <dl compact><dt><b>Returns: </b></dt><dd> size in bytes </dl> </td> </tr> </table> <hr><address style="align: right;"><small>Generated on Wed Apr 2 16:06:38 2003 for ALSA project - the C library reference by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address> </body> </html>