glfs/multimedia/libdriv/alsa-lib.xml
Randy McMurchy fb9298b4f2 Added instructions to run the test suite for GCC-3; added a cd command to the ALSA lib instructions to prepare for installing the documentation
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3504 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-02-28 02:21:57 +00:00

145 lines
5.1 KiB
XML

<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY alsa-lib-download-http "&alsa-download-http;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
<!ENTITY alsa-lib-download-ftp "&alsa-download-ftp;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
<!ENTITY alsa-lib-md5sum "34ceaac0d1f0fc2b1462cef7c3a6825e">
<!ENTITY alsa-lib-size "661 KB">
<!ENTITY alsa-lib-buildsize "33.7 MB (45.5 MB if docs are built)">
<!ENTITY alsa-lib-time "0.59 SBU">
]>
<sect1 id="alsa-lib" xreflabel="ALSA Library-&alsa-lib-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="alsa-lib.html"?>
<title>ALSA Library-&alsa-lib-version;</title>
<sect2>
<title>Introduction to <application><acronym>ALSA</acronym>
Library</application></title>
<para>The <application><acronym>ALSA</acronym> Library</application> package
contains the <acronym>ALSA</acronym> library. This is used by programs
(including <application><acronym>ALSA</acronym> Utilities</application>)
requiring access to the <acronym>ALSA</acronym> sound interface.</para>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP):
<ulink url="&alsa-lib-download-http;"/></para></listitem>
<listitem><para>Download (FTP):
<ulink url="&alsa-lib-download-ftp;"/></para></listitem>
<listitem><para>Download MD5 sum: &alsa-lib-md5sum;</para></listitem>
<listitem><para>Download size: &alsa-lib-size;</para></listitem>
<listitem><para>Estimated disk space required:
&alsa-lib-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&alsa-lib-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title><application><acronym>ALSA</acronym> Library</application>
dependencies</title>
<sect4><title>Optional</title>
<para><ulink url="http://jackit.sourceforge.net/">JACK</ulink> and
<xref linkend="doxygen"/></para>
</sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application><acronym>ALSA</acronym>
Library</application>
</title>
<para>In the <quote>Sound</quote> section of the kernel configuration, edit
<userinput>Advanced Linux Sound Architecture</userinput> options to match your
audio hardware and disable deprecated <userinput>Open Sound System</userinput>.
Recompile and install your new kernel.</para>
<para>Install <application><acronym>ALSA</acronym> Library</application> by
running the following commands:</para>
<screen><userinput><command>./configure --enable-static &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
<para>If you have <application><acronym>JACK</acronym></application> installed
and you wish to build the <application><acronym>JACK</acronym></application>
<acronym>PCM</acronym> plugin library, run the following commands:</para>
<screen><userinput><command>cd src/pcm/ext &amp;&amp;
make jack &amp;&amp;
make install-jack &amp;&amp;
cd ../../..</command></userinput></screen>
<para>If you have <application>Doxygen</application> installed and you wish to
build the library <acronym>API</acronym> documentation, run the following
commands from the top-level directory of the source tree:</para>
<screen><userinput><command>make doc &amp;&amp;
install -d -m755 /usr/share/alsa/doc/html &amp;&amp;
install -m644 doc/doxygen/html/* /usr/share/alsa/doc/html</command></userinput></screen>
</sect2>
<sect2>
<title>Command explanations</title>
<para><parameter>--enable-static</parameter>: This switch is used to enable
building the static library because some programs link against it.</para>
</sect2>
<sect2>
<title>Configuring <application><acronym>ALSA</acronym>
Library</application></title>
<sect3><title>Config files</title>
<para><filename>/usr/share/alsa/alsa.conf</filename>,
<filename>/etc/asound.conf</filename>,
<filename>~/.asoundrc</filename> and
<filename>/usr/share/alsa/{cards,pcm}/*.conf</filename></para>
</sect3>
<sect3><title>Configuration information</title>
<para>The default <filename>alsa.conf</filename> is adequate for most
installations. For extra functionality and/or advanced control of your sound
device, you may need to create additional configuration files. For
information on the available configuration parameters, including setup of the
<application><acronym>JACK</acronym></application> <acronym>PCM</acronym>
plugin, visit <ulink
url="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php"/>.</para>
</sect3>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application><acronym>ALSA</acronym> Library</application> package
contains <command>aserver</command>,
<command>alsalisp</command>,
the <filename class="libraryfile">libasound</filename> library and optionally,
the <application><acronym>JACK</acronym></application> <acronym>PCM</acronym>
plugin library.</para>
</sect2>
<sect2><title>Description</title>
<sect3><title>libasound (alsa library)</title>
<para><filename class="libraryfile">libasound</filename> provides
<acronym>ALSA</acronym> functions for application programs.</para></sect3>
</sect2>
</sect1>