[48b7295] | 1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 4 | %general-entities;
|
---|
[73942e6] | 5 |
|
---|
[48b7295] | 6 | <!ENTITY alsa-lib-download-http "&alsa-download-http;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
---|
| 7 | <!ENTITY alsa-lib-download-ftp "&alsa-download-ftp;/lib/alsa-lib-&alsa-lib-version;.tar.bz2">
|
---|
[7a9f6537] | 8 | <!ENTITY alsa-lib-size "661 KB">
|
---|
[73942e6] | 9 | <!ENTITY alsa-lib-buildsize "33.7 MB (45.5 MB if docs are built)">
|
---|
| 10 | <!ENTITY alsa-lib-time "0.59 SBU">
|
---|
[48b7295] | 11 | ]>
|
---|
[73942e6] | 12 |
|
---|
[48b7295] | 13 | <sect1 id="alsa-lib" xreflabel="ALSA Library-&alsa-lib-version;">
|
---|
[a0f03b0] | 14 | <sect1info>
|
---|
[5cd0959d] | 15 | <othername>$LastChangedBy$</othername>
|
---|
| 16 | <date>$Date$</date>
|
---|
[a0f03b0] | 17 | </sect1info>
|
---|
[48b7295] | 18 | <?dbhtml filename="alsa-lib.html"?>
|
---|
| 19 | <title>ALSA Library-&alsa-lib-version;</title>
|
---|
| 20 |
|
---|
| 21 | <sect2>
|
---|
[73942e6] | 22 | <title>Introduction to <application><acronym>ALSA</acronym>
|
---|
| 23 | Library</application></title>
|
---|
[48b7295] | 24 |
|
---|
| 25 | <para>The <application><acronym>ALSA</acronym> Library</application> package
|
---|
| 26 | contains the <acronym>ALSA</acronym> library. This is used by programs
|
---|
[73942e6] | 27 | (including <application><acronym>ALSA</acronym> Utilities</application>)
|
---|
| 28 | requiring access to the <acronym>ALSA</acronym> sound interface.</para>
|
---|
[48b7295] | 29 |
|
---|
| 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink url="&alsa-lib-download-http;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download (FTP): <ulink url="&alsa-lib-download-ftp;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download size: &alsa-lib-size;</para></listitem>
|
---|
[73942e6] | 35 | <listitem><para>Estimated disk space required: &alsa-lib-buildsize;</para></listitem>
|
---|
[48b7295] | 36 | <listitem><para>Estimated build time: &alsa-lib-time;</para></listitem></itemizedlist>
|
---|
| 37 | </sect3>
|
---|
| 38 |
|
---|
[73942e6] | 39 | <sect3><title><application><acronym>ALSA</acronym> Library</application>
|
---|
| 40 | dependencies</title>
|
---|
| 41 | <sect4><title>Optional</title>
|
---|
| 42 | <para><ulink url="http://jackit.sourceforge.net/">JACK</ulink> and
|
---|
[2ce558b1] | 43 | <xref linkend="doxygen-package"/></para>
|
---|
[73942e6] | 44 | </sect4>
|
---|
| 45 | </sect3>
|
---|
| 46 |
|
---|
[48b7295] | 47 | </sect2>
|
---|
| 48 |
|
---|
| 49 | <sect2>
|
---|
[73942e6] | 50 | <title>Installation of <application><acronym>ALSA</acronym>
|
---|
| 51 | Library</application>
|
---|
[48b7295] | 52 | </title>
|
---|
| 53 |
|
---|
[73942e6] | 54 | <para>In the <quote>Sound</quote> section of the kernel configuration, edit
|
---|
| 55 | <userinput>Advanced Linux Sound Architecture</userinput> options to match your
|
---|
| 56 | audio hardware and disable deprecated <userinput>Open Sound System</userinput>.
|
---|
[7f58d870] | 57 | Recompile and install your new kernel.</para>
|
---|
| 58 |
|
---|
[73942e6] | 59 | <para>Install <application><acronym>ALSA</acronym> Library</application> by
|
---|
| 60 | running the following commands:</para>
|
---|
[48b7295] | 61 |
|
---|
| 62 | <screen><userinput><command>./configure --enable-static &&
|
---|
| 63 | make &&
|
---|
| 64 | make install</command></userinput></screen>
|
---|
| 65 |
|
---|
[73942e6] | 66 | <para>If you have <application><acronym>JACK</acronym></application> installed
|
---|
| 67 | and you wish to build the <application><acronym>JACK</acronym></application>
|
---|
| 68 | <acronym>PCM</acronym> plugin library, run the following commands:</para>
|
---|
| 69 |
|
---|
| 70 | <screen><userinput><command>cd src/pcm/ext &&
|
---|
| 71 | make jack &&
|
---|
| 72 | make install-jack</command></userinput></screen>
|
---|
| 73 |
|
---|
| 74 | <para>If you have <application>Doxygen</application> installed and you wish to
|
---|
| 75 | build the library <acronym>API</acronym> documentation, run the following
|
---|
| 76 | commands from the top-level directory of the source tree:</para>
|
---|
| 77 |
|
---|
| 78 | <screen><userinput><command>make doc &&
|
---|
| 79 | install -d -m755 /usr/share/alsa/doc/html &&
|
---|
| 80 | install -m644 doc/doxygen/html/* /usr/share/alsa/doc/html</command></userinput></screen>
|
---|
| 81 |
|
---|
[48b7295] | 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2>
|
---|
| 85 | <title>Command explanations</title>
|
---|
| 86 |
|
---|
| 87 | <para><parameter>--enable-static</parameter>: This switch is used to enable
|
---|
[73942e6] | 88 | building the static library because some programs link against it.</para>
|
---|
[48b7295] | 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2>
|
---|
[73942e6] | 93 | <title>Configuring <application><acronym>ALSA</acronym>
|
---|
| 94 | Library</application></title>
|
---|
| 95 |
|
---|
| 96 | <sect3><title>Config files</title>
|
---|
| 97 | <para><filename>/usr/share/alsa/alsa.conf</filename>,
|
---|
| 98 | <filename>/etc/asound.conf</filename>,
|
---|
| 99 | <filename>~/.asoundrc</filename> and
|
---|
| 100 | <filename>/usr/share/alsa/{cards,pcm}/*.conf</filename></para>
|
---|
| 101 | </sect3>
|
---|
[48b7295] | 102 |
|
---|
[73942e6] | 103 | <sect3><title>Configuration information</title>
|
---|
[48b7295] | 104 |
|
---|
[73942e6] | 105 | <!--
|
---|
[48b7295] | 106 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
[73942e6] | 107 | -->
|
---|
| 108 | <para>The default <filename>alsa.conf</filename> is adequate for most
|
---|
| 109 | installations. For extra functionality and/or advanced control of your sound
|
---|
| 110 | device, you may need to create additional configuration files. For
|
---|
| 111 | information on the available configuration parameters, including setup of the
|
---|
| 112 | <application><acronym>JACK</acronym></application> <acronym>PCM</acronym>
|
---|
| 113 | plugin, visit <ulink
|
---|
| 114 | url="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php"/>.</para>
|
---|
[48b7295] | 115 |
|
---|
| 116 | </sect3>
|
---|
| 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2>
|
---|
| 121 | <title>Contents</title>
|
---|
| 122 |
|
---|
| 123 | <para>The <application><acronym>ALSA</acronym> Library</application> package
|
---|
[73942e6] | 124 | contains <command>aserver</command>,
|
---|
| 125 | <command>alsalisp</command>,
|
---|
| 126 | the <filename class="libraryfile">libasound</filename> library and optionally,
|
---|
| 127 | the <application><acronym>JACK</acronym></application> <acronym>PCM</acronym>
|
---|
| 128 | plugin library.</para>
|
---|
[48b7295] | 129 |
|
---|
| 130 | </sect2>
|
---|
| 131 |
|
---|
| 132 | <sect2><title>Description</title>
|
---|
| 133 |
|
---|
| 134 | <sect3><title>libasound (alsa library)</title>
|
---|
| 135 | <para><filename class="libraryfile">libasound</filename> provides
|
---|
| 136 | <acronym>ALSA</acronym> functions for application programs.</para></sect3>
|
---|
| 137 |
|
---|
| 138 | </sect2>
|
---|
| 139 |
|
---|
| 140 | </sect1>
|
---|