Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 727fa15453fcace956b835e2377d4269 > files > 544

player-doc-3.0.2-5.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html>
<!-- $Id: header.html 8799 2010-06-28 04:12:42Z jpgr87 $ -->

<HEAD>


<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=utf-8">
<meta name="keywords" content="stage, robot, simulation, player, player/stage">
<link href="doxygen.css" rel="stylesheet" type="text/css">

<style type="text/css">

.floatright { float: right; margin: 0 0 1em 1em; }

body {
  font-family: sans-serif;
  #font-family: Geneva, Verdana, Helvetica, Arial, sans-serif;
  background-color: #FFF;
  color:#000;
}


a:link { 
	color: #A00;
}

a:visited { 
	color: #800;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }


.timestamp { text-align:right; background-color: #DDD; font-size:75%;}

h1 { 
  font-size:160%; 
}

h2 {
  font-size:110%;
  #color: #FFF;
  #background-color: #666;
  #padding:3px;
}

h3 { text-align:left; }

img {
  border: 0;
}

ul.menu { 
    position:relative;
    left:-2.5em;
    margin-bottom:0px;
    margin-top:0px;
}

ul.menu1 { 
    position:relative;
    left:-2.1em;
    margin-bottom:0px;
    margin-top:0px;
}

li.menu { 
    list-style-type: none;
    position:relative;
    #left:-0.5em;
}


#sidebar { position: absolute; left:0px; padding:2em; top:0em; width:12em;}

#content { position: absolute; left:12em; top:0em; padding-left:3em; padding-right:3em; padding-bottom:2em; margin-top:1em; margin-right:2em; }

div.box { background-color:#EEE; border: 1px solid #000; padding: 0.5ex 0.4em 0.5ex 0.6em; margin:1em;  }
div.title { font-weight:bold; background-color:#eee; margin-bottom:2px;}

div.topbar { position: absolute; top:0px; left:9em; margin:1em; }

</style>

<TITLE>Player Manual</TITLE>

</HEAD>

<body>

<div id="sidebar"> 

<h2 style="text-align:center;">
<a href="index.html">
<img width=140 src="http://playerstage.sourceforge.net/images/player_button_v3.png" alt="Player logo"><br></a>
</h2>



<div class="box">
<div class=title>Player</div>

<ul class=menu>
<li class=menu><a href="index.html">Frontpage</a>
<li class=menu><a href="modules.html">Contents</a>
</ul>
</div>

<div class="box">
<div class=title>User</div>

<ul class=menu>
<li class=menu><a href="install.html">Installation</a>
<li class=menu><a href="start.html">Quick start</a>
<li class=menu><a href="supported_hardware.html">Supported&nbsp;devices</a>
<li class=menu><a href="group__tutorials.html">Tutorials</a>
<li class=menu><a href="group__utils.html">Utilities</a>
<li class=menu><a href="group__clientlibs.html">Client&nbsp;libraries</a>
<li class=menu><a href="http://playerstage.sourceforge.net/wiki/Basic_FAQ">FAQ</a>
<li class=menu><a href="help.html">Help</a>

</ul>
</div>

<div class=box>
<div class="title">Developer</div>
<ul class=menu>
<li class=menu><a href="architecture.html">Architecture</a>
<li class=menu><a href="group__libplayercore.html">libplayercore</a>
<ul class=menu1>
<li class=menu><a href="group__interfaces.html">interfaces</a></li>
</ul>
<li class=menu><a href="group__libplayerdrivers.html">libplayerdrivers</a>
<ul class=menu1>
<li class=menu><a href="group__drivers.html">drivers</a></li>
</ul>
<li class=menu><a href="group__libplayercommon.html">libplayercommon</a>
<li class=menu><a href="group__libplayerutils.html">libplayerutils</a>
<li class=menu><a href="group__libplayersd.html">libplayersd</a>
<li class=menu><a href="group__libplayertcp.html">libplayertcp</a>
<li class=menu><a href="group__libplayerxdr.html">libplayerxdr</a>
<li class=menu><a href="todo.html">TODO</a>
</ul>
</div>

<div class=box>
<!-- <a href="http://sourceforge.net"><img border=0 src="http://sourceforge.net/sflogo.php?group_id=42445&type=1"></a> -->
<div class="title">Online</div>
<a href="http://playerstage.sourceforge.net">Homepage</a><br>
<a href="http://sourceforge.net/project/showfiles.php?group_id=42445">Download</a><br>
<a href="http://sourceforge.net/projects/playerstage">Project</a><br>
<a href="http://sourceforge.net/tracker/?group_id=42445">Bugs</a><br>
<a href="http://sourceforge.net/mail/?group_id=42445">Help</a>
</div>


</div>

<div id="content" >
<!-- Generated by Doxygen 1.7.1 -->
<div class="header">
  <div class="headertitle">
<h1>alsa<br/>
<small>
[<a class="el" href="group__drivers.html">Drivers</a>]</small>
</h1>  </div>
</div>
<div class="contents">

<p>Linux ALSA sound system driver.  
<a href="#_details">More...</a></p>
<table class="memberdecls">
</table>
<p>Linux ALSA sound system driver. </p>
<p>This driver provides access to sound playing and recording functionality through the Advanced Linux Sound Architecture (ALSA) system available on 2.6 series kernels (and before via patches/separate libraries).</p>
<p>Not all of the audio interface is supported. Currently supported features are:</p>
<p>PLAYER_AUDIO_CMD_WAV_PLAY - Play raw PCM wave data PLAYER_AUDIO_CMD_SAMPLE_PLAY - Play locally stored and remotely provided samples PLAYER_AUDIO_CMD_WAV_STREAM_REC - Toggle streamed-to-client recording PLAYER_AUDIO_CMD_MIXER_CHANNEL - Change volume levels PLAYER_AUDIO_REQ_MIXER_CHANNEL_LIST - Get channel details PLAYER_AUDIO_REQ_MIXER_CHANNEL_LEVEL - Get volume levels PLAYER_AUDIO_REQ_SAMPLE_LOAD - Store samples provided by remote clients (max 1MB) PLAYER_AUDIO_REQ_SAMPLE_RETRIEVE - Send stored samples to remote clients (max 1MB) PLAYER_AUDIO_REQ_SAMPLE_REC - Record new samples directly on the server</p>
<p>Known bugs:</p>
<ul>
<li>Sounds may skip just as they finish playing. This is something to do with the call to snd_pcm_drain.</li>
</ul>
<dl class="user"><dt><b>Samples</b></dt><dd></dd></dl>
<p>Locally stored samples are preferred to samples loaded over the network or using the PLAYER_AUDIO_CMD_WAV_PLAY message for a number of reasons:</p>
<ul>
<li>It takes time to transfer large quantities of wave data over the network.</li>
<li>Remotely provided samples are stored in memory, local samples are only loaded when played. If you have a lot of samples provided remotely, the memory use will be high.</li>
<li>Local samples are not limited to only the formats (bits per sample, sample rate, etc) that player supports. They can be any standard WAV format file that uses a format for the audio data supported by ALSA.</li>
<li>Remote samples can only be up to 1MB in size. This limits you to about 6 seconds of audio data at 44100Hz, 16 bit, stereo. Local samples can be as big as you have memory. A future version of the driver will implement play-on-read, meaning local samples will only be limited by disc space to store them.</li>
</ul>
<p>When retrieving samples from the server via the PLAYER_AUDIO_REQ_SAMPLE_RETRIEVE request, note that any sample with a data length greater than PLAYER_AUDIO_WAV_BUFFER_SIZE will be truncated to this size.</p>
<p>When using the PLAYER_AUDIO_REQ_SAMPLE_LOAD and PLAYER_AUDIO_REQ_SAMPLE_REC messages to store samples, currently only appending and overwriting existing samples is allowed. Trying to store at a specific index greater than the number of currently stored samples will result in an error. Note that the samples indices are 0-based, so if there are 5 samples stored and you request to store one at index 5 (technically beyond the end of the list), it will append to the end and become the sample at index 5. TODO: Talk to Toby to clarify his intentions for the index in this message.</p>
<dl class="user"><dt><b>Provides</b></dt><dd></dd></dl>
<p>The driver provides a single <a class="el" href="group__interface__audio.html">audio</a> interface.</p>
<dl class="user"><dt><b>Configuration file options</b></dt><dd></dd></dl>
<ul>
<li>samples (tuple of strings)<ul>
<li>Default: empty</li>
<li>The path of wave files to have as locally stored samples.</li>
</ul>
</li>
<li>pbdevice (string)<ul>
<li>Default: none</li>
<li>The device to use for playback.</li>
<li>If none, playback functionality will not be available.</li>
<li>e.g. "plughw:0,0"</li>
<li>The order of arguments in this string, according to the ALSA documentation, are card number or identifier, device number and subdevice.</li>
</ul>
</li>
<li>pb_bufferlength (integer)<ul>
<li>Default: 500ms</li>
<li>The length of the playback buffer. A longer buffer means less chance of skipping during playback.</li>
</ul>
</li>
<li>pb_periodlength (integer)<ul>
<li>Default: 50ms</li>
<li>The length of a period. This is used to change how frequently the buffer is written to. The longer the period, the longer it takes to write, but also the less frequently it will be done.</li>
</ul>
</li>
<li>pb_silence (integer)<ul>
<li>Default: 0ms</li>
<li>The length of silence to play between consecutive sounds. Useful if you don't want your sounds played right up next to eachother, but bad if you're streaming a sound that's bigger than a single wave data message.</li>
<li>If usequeue is false, this will be ignored.</li>
</ul>
</li>
<li>usequeue (boolean)<ul>
<li>Default: true</li>
<li>Turns the queuing system on/off. When true, all PLAYER_AUDIO_CMD_WAV_PLAY and PLAYER_AUDIO_CMD_SAMPLE_PLAY commands will be added to a queue and played in order of request. When off, sending a new command will stop the currently playing sound and start the new one.</li>
</ul>
</li>
<li>recdevice (string)<ul>
<li>Default: none</li>
<li>The device to use for recording.</li>
<li>If none, record functionality will not be available.</li>
<li>e.g. "plughw:0,0"</li>
<li>The order of arguments in this string, according to the ALSA documentation, are card number or identifier, device number and subdevice.</li>
</ul>
</li>
<li>rec_bufferlength (integer)<ul>
<li>Default: 500ms</li>
<li>The length of the record buffer. A longer buffer means less chance of an underrun while recording.</li>
</ul>
</li>
<li>rec_storelength (integer)<ul>
<li>Default: Same as rec_bufferlength</li>
<li>The length of recorded data to store before sending that data to clients. Can be less than rec_bufferlength.</li>
</ul>
</li>
<li>rec_periodlength (integer)<ul>
<li>Default: 50ms</li>
<li>The length of a period for recording. This is used to change how frequently the buffer is read from. The longer the period, the longer between reads, but also the less frequently it will be done.</li>
</ul>
</li>
<li>rec_nch (integer)<ul>
<li>Default: 1</li>
<li>Number of recording channels.</li>
</ul>
</li>
<li>rec_sr (integer)<ul>
<li>Default: 44100</li>
<li>Recording sample rate.</li>
</ul>
</li>
<li>rec_bits (integer)<ul>
<li>Default: 16</li>
<li>Bits per sample for recording.</li>
</ul>
</li>
<li>mixerdevice (string)<ul>
<li>Default: none</li>
<li>The device to attach the mixer interface to</li>
<li>If none, mixer functionality will not be available.</li>
<li>e.g. "default"</li>
</ul>
</li>
<li>mixerfilters (tuple of strings)<ul>
<li>Default: none</li>
<li>A typical ALSA mixer contains a large number of elements, providing detailed control over all aspects of the sound system. The disadvantage of this is that many of them will be irrelevant to your needs. This driver option allows the list of available elements presented to clients to be filtered by name. Only those elements whose names include one of the strings in this list will be seen by clients.</li>
<li>The strings in this list are case insensitive, and by default do not need to match an element's entire name. If you want to change this, use the mixerfilterexact option.</li>
<li>The best way to find the names of the elements you need is to run without a filter list first, get the elements from the server and print them out. Then check which ones you need and use those as the filters.</li>
</ul>
</li>
<li>mixerfilterexact (bool)<ul>
<li>Default: false</li>
<li>When set to false, filters listed in mixerfilters will not need to match an element's entire name nor be case sensitive.</li>
<li>When set to true, an element's name must exactly match a filter to pass.</li>
</ul>
</li>
</ul>
<dl class="user"><dt><b>Example</b></dt><dd></dd></dl>
<div class="fragment"><pre class="fragment">
driver
(
  name "alsa"
  provides ["audio:0"]
  samples ["sample1.wav" "sample2.wav" "sample3.wav"]
  mixerfilters ["master" "pcm" "capture"]
)
</pre></div><dl class="author"><dt><b>Author:</b></dt><dd>Geoffrey Biggs, Lorenz Moesenlechner </dd></dl>
</div>
<!-- render the modification time of the source file -->


<div class="timestamp">
<hr>

<table style="width:100%;">
<tr>
<td style="text-align:left;">
Last updated 12 September 2005 21:38:45
<!--
<td style="text-align:right;">
<a href="http://validator.w3.org/check/referer"><img style="vertical-align:middle;border:0;width:88px;height:31px"
          src="http://www.w3.org/Icons/valid-html401"
          alt="Valid HTML 4.01!"></a>

 <a href="http://jigsaw.w3.org/css-validator/">
  <img style="vertical-align:middle;border:0;width:88px;height:31px"
       src="http://jigsaw.w3.org/css-validator/images/vcss"
       alt="Valid CSS!">
 </a>
-->
</tr>
</table>
</div>


</tr>
</table>

</BODY>
</HTML>