[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[48b7295] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[4a21942] | 6 |
|
---|
[9bbd056] | 7 | <!ENTITY audiofile-download-http "&gnome-download-http;/audiofile/0.3/audiofile-&audiofile-version;.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY audiofile-download-ftp " ">
|
---|
[6d8f6dc] | 9 | <!ENTITY audiofile-md5sum "235dde14742317328f0109e9866a8008">
|
---|
| 10 | <!ENTITY audiofile-size "520 KB">
|
---|
| 11 | <!ENTITY audiofile-buildsize "18 MB">
|
---|
[f856738] | 12 | <!ENTITY audiofile-time "0.6 SBU">
|
---|
[48b7295] | 13 | ]>
|
---|
[4a21942] | 14 |
|
---|
[9bbd056] | 15 | <sect1 id="audiofile" xreflabel="AudioFile-&audiofile-version;">
|
---|
[ff7ee9c3] | 16 | <?dbhtml filename="audiofile.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[9bbd056] | 19 | <title>AudioFile-&audiofile-version;</title>
|
---|
[ff7ee9c3] | 20 |
|
---|
| 21 | <indexterm zone="audiofile">
|
---|
[5b38e37] | 22 | <primary sortas="a-AudioFile">AudioFile</primary>
|
---|
[ff7ee9c3] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[5b38e37] | 26 | <title>Introduction to AudioFile</title>
|
---|
[ff7ee9c3] | 27 |
|
---|
[9bbd056] | 28 | <para>
|
---|
[5b38e37] | 29 | The <application>AudioFile</application> package contains the
|
---|
[9bbd056] | 30 | audio file libraries and two sound file support programs useful
|
---|
| 31 | to support basic sound file formats.
|
---|
| 32 | </para>
|
---|
[ff7ee9c3] | 33 |
|
---|
[c36ca685] | 34 | &lfs122_checked;
|
---|
[cedf6b5] | 35 |
|
---|
[ff7ee9c3] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[9bbd056] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&audiofile-download-http;"/>
|
---|
| 41 | </para>
|
---|
[ff7ee9c3] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[9bbd056] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&audiofile-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[ff7ee9c3] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[9bbd056] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &audiofile-md5sum;
|
---|
| 51 | </para>
|
---|
[ff7ee9c3] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[9bbd056] | 54 | <para>
|
---|
| 55 | Download size: &audiofile-size;
|
---|
| 56 | </para>
|
---|
[ff7ee9c3] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[9bbd056] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &audiofile-buildsize;
|
---|
| 61 | </para>
|
---|
[ff7ee9c3] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[9bbd056] | 64 | <para>
|
---|
| 65 | Estimated build time: &audiofile-time;
|
---|
| 66 | </para>
|
---|
[ff7ee9c3] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
[68bc1fb0] | 70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 71 | <itemizedlist spacing="compact">
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>
|
---|
| 74 | Required patch:
|
---|
| 75 | <ulink url="&patch-root;/audiofile-&audiofile-version;-consolidated_patches-1.patch"/>
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[5b38e37] | 80 | <bridgehead renderas="sect3">AudioFile Dependencies</bridgehead>
|
---|
[f856738] | 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 83 | <para role="required">
|
---|
| 84 | <xref linkend="alsa-lib"/>
|
---|
| 85 | </para>
|
---|
[9bbd056] | 86 |
|
---|
[6d8f6dc] | 87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 88 | <para role="recommended">
|
---|
| 89 | <xref linkend="flac"/>
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 93 | <para role="optional">
|
---|
[8558044] | 94 | <xref linkend="asciidoc"/> and
|
---|
[f1607a4] | 95 | <xref linkend="valgrind"/>
|
---|
[6d8f6dc] | 96 | </para>
|
---|
| 97 |
|
---|
[ff7ee9c3] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
[5b38e37] | 101 | <title>Installation of AudioFile</title>
|
---|
[ff7ee9c3] | 102 |
|
---|
[9bbd056] | 103 | <para>
|
---|
[5b38e37] | 104 | Install <application>AudioFile</application> by running the following
|
---|
[9bbd056] | 105 | commands:
|
---|
| 106 | </para>
|
---|
[ff7ee9c3] | 107 |
|
---|
[68bc1fb0] | 108 | <!-- No longer needed with the patch
|
---|
| 109 | CXXFLAGS="${CXXFLAGS:- -O2 -g} -std=c++98" -->
|
---|
| 110 |
|
---|
[ca88cb8] | 111 | <screen><userinput>patch -Np1 -i ../audiofile-&audiofile-version;-consolidated_patches-1.patch &&
|
---|
[68bc1fb0] | 112 | autoreconf -fiv &&
|
---|
| 113 |
|
---|
| 114 | ./configure --prefix=/usr --disable-static &&
|
---|
[41d241e] | 115 |
|
---|
[9bbd056] | 116 | make</userinput></screen>
|
---|
[ff7ee9c3] | 117 |
|
---|
[9bbd056] | 118 | <para>
|
---|
[41d241e] | 119 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <para>
|
---|
| 125 | To test the results, issue: <command>make check</command>.
|
---|
[2bf43964] | 126 | Note that the tests will fail if the --disable-static
|
---|
[41d241e] | 127 | option is used and tests are executed before
|
---|
| 128 | <command>make install</command>. You have three options:
|
---|
[9bbd056] | 129 | </para>
|
---|
[06d301f] | 130 |
|
---|
[9bbd056] | 131 | <para>
|
---|
[41d241e] | 132 | (a) configure without --disable-static, run the tests, but do not
|
---|
| 133 | install, then start a fresh build using --disable-static just for
|
---|
| 134 | installing the package.
|
---|
[9bbd056] | 135 | </para>
|
---|
[ff7ee9c3] | 136 |
|
---|
[41d241e] | 137 | <para>
|
---|
| 138 | (b) configure with --disable-static, but only run the tests after the
|
---|
| 139 | package is installed.
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
[5c33f429] | 143 | (c) configure with --disable-static, but only run the tests after a
|
---|
[41d241e] | 144 | DESTDIR install.
|
---|
| 145 | </para>
|
---|
[ff7ee9c3] | 146 |
|
---|
| 147 | </sect2>
|
---|
| 148 |
|
---|
[5b38e37] | 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 |
|
---|
| 152 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 153 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 154 |
|
---|
| 155 | </sect2>
|
---|
| 156 |
|
---|
[ff7ee9c3] | 157 | <sect2 role="content">
|
---|
| 158 | <title>Contents</title>
|
---|
| 159 |
|
---|
| 160 | <segmentedlist>
|
---|
| 161 | <segtitle>Installed Programs</segtitle>
|
---|
[9bbd056] | 162 | <segtitle>Installed Libraries</segtitle>
|
---|
[c3c56b2] | 163 | <segtitle>Installed Directories</segtitle>
|
---|
[ff7ee9c3] | 164 |
|
---|
| 165 | <seglistitem>
|
---|
[9bbd056] | 166 | <seg>
|
---|
| 167 | sfconvert and sfinfo
|
---|
| 168 | </seg>
|
---|
| 169 | <seg>
|
---|
[5b38e37] | 170 | libaudiofile.so
|
---|
[9bbd056] | 171 | </seg>
|
---|
[c3c56b2] | 172 | <seg>
|
---|
| 173 | None
|
---|
| 174 | </seg>
|
---|
[ff7ee9c3] | 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
| 177 |
|
---|
| 178 | <variablelist>
|
---|
| 179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 180 | <?dbfo list-presentation="list"?>
|
---|
| 181 | <?dbhtml list-presentation="table"?>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="sfinfo">
|
---|
| 184 | <term><command>sfinfo</command></term>
|
---|
| 185 | <listitem>
|
---|
[9bbd056] | 186 | <para>
|
---|
| 187 | displays the sound file format, audio encoding, sampling
|
---|
[4c24eb0a] | 188 | rate and duration for audio formats supported by this library
|
---|
[9bbd056] | 189 | </para>
|
---|
[ff7ee9c3] | 190 | <indexterm zone="audiofile sfinfo">
|
---|
| 191 | <primary sortas="b-sfinfo">sfinfo</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="sfconvert">
|
---|
| 197 | <term><command>sfconvert</command></term>
|
---|
| 198 | <listitem>
|
---|
[9bbd056] | 199 | <para>
|
---|
| 200 | converts sound file formats where the original format and
|
---|
[4c24eb0a] | 201 | destination format are supported by this library
|
---|
[9bbd056] | 202 | </para>
|
---|
[ff7ee9c3] | 203 | <indexterm zone="audiofile sfconvert">
|
---|
| 204 | <primary sortas="b-sfconvert">sfconvert</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="libaudiofile">
|
---|
[5b38e37] | 210 | <term><filename class="libraryfile">libaudiofile.so</filename></term>
|
---|
[ff7ee9c3] | 211 | <listitem>
|
---|
[9bbd056] | 212 | <para>
|
---|
| 213 | contains functions used by programs to support AIFF,
|
---|
[4c24eb0a] | 214 | AIFF-compressed, Sun/NeXT, WAV and BIC audio formats
|
---|
[9bbd056] | 215 | </para>
|
---|
[ff7ee9c3] | 216 | <indexterm zone="audiofile libaudiofile">
|
---|
[5b38e37] | 217 | <primary sortas="c-libaudiofile">libaudiofile.so</primary>
|
---|
[ff7ee9c3] | 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | </variablelist>
|
---|
| 223 |
|
---|
| 224 | </sect2>
|
---|
[f45b1953] | 225 |
|
---|
| 226 | </sect1>
|
---|