comparison DOCS/sound.html @ 5765:913cd7f4b8c5

applied Holm^H^H^H^HDiego's (?:) patch
author gabucino
date Sun, 21 Apr 2002 15:29:59 +0000
parents b53597b930b1
children 360c3b1dd1d7
comparison
equal deleted inserted replaced
5764:1e07af707b15 5765:913cd7f4b8c5
10 10
11 <BODY BGCOLOR=white> 11 <BODY BGCOLOR=white>
12 12
13 <FONT CLASS="text"> 13 <FONT CLASS="text">
14 14
15 <P><B><A NAME=2.3.2>2.3.2. Audio output devices</A></P></B> 15 <P><B><A NAME=2.3.2>2.3.2. Audio output devices</A></B></P>
16 16
17 <P><B>MPlayer</B>'s audio interface is called <I>libao2</I>. It currently 17 <P><B>MPlayer</B>'s audio interface is called <I>libao2</I>. It currently
18 contains these drivers :</P> 18 contains these drivers:</P>
19 19
20 <TABLE BORDER=0> 20 <TABLE BORDER=0>
21 21
22 <TD COLSPAN=4><P><B><FONT CLASS="text">General:</B></P></TD> 22 <TR><TD COLSPAN=4><P><B><FONT CLASS="text">General:</B></P></TD></TR>
23 23
24 <TR><TD>&nbsp;&nbsp;</TD><TD VALIGN=top><FONT CLASS="text">oss</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">OSS (ioctl) driver</TD></TR> 24 <TR><TD>&nbsp;&nbsp;</TD><TD VALIGN=top><FONT CLASS="text">oss</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">OSS (ioctl) driver</TD></TR>
25 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">sdl</TD><TD></TD><TD><FONT CLASS="text">SDL driver (supports up/downsampling, <B>ESD</B>, <B>ARTS</B> etc)</TD></TR> 25 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">sdl</TD><TD></TD><TD><FONT CLASS="text">SDL driver (supports up/downsampling, <B>ESD</B>, <B>ARTS</B> etc)</TD></TR>
26 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">nas</TD><TD></TD><TD><FONT CLASS="text">NAS (Network Audio System) driver</TD></TR> 26 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">nas</TD><TD></TD><TD><FONT CLASS="text">NAS (Network Audio System) driver</TD></TR>
27 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">alsa5</TD><TD></TD><TD><FONT CLASS="text">native ALSA 0.5 driver</TD></TR> 27 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">alsa5</TD><TD></TD><TD><FONT CLASS="text">native ALSA 0.5 driver</TD></TR>
28 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">alsa9</TD><TD></TD><TD><FONT CLASS="text">native ALSA 0.9 driver (works, but has problems -> use OSS)</TD></TR> 28 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">alsa9</TD><TD></TD><TD><FONT CLASS="text">native ALSA 0.9 driver (works, but has problems -> use OSS)</TD></TR>
29 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">sun</TD><TD></TD><TD><FONT CLASS="text">SUN audio driver (/dev/audio) for BSD and Solaris8 users</TD></TR> 29 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">sun</TD><TD></TD><TD><FONT CLASS="text">SUN audio driver (/dev/audio) for BSD and Solaris8 users</TD></TR>
30 30
31 </TABLE> 31 </TABLE>
32 32
33 <P>The fact is, Linux soundcard drivers are usually bad, and always as 33 <P>Fact is, Linux sound card drivers have compatibility problems.
34 incompatible as they can be. It MAY take a while to find your optimal settings.</P> 34 It <B>may</B> take a while to find your optimal settings.</P>
35 <P><UL> 35
36 <LI>if you have OSS as driver, first try with <I>-ao oss</I> (this is the default). 36 <UL>
37 If you experience glitches, halts or anything out of the ordinary, have a 37 <LI>If you have an OSS driver, first try <CODE>-ao oss</CODE> (this is the default).
38 look at <I>-ao sdl</I> (NOTE: of course you'll have to have a new SDL library and its 38 If you experience glitches, halts or anything out of the ordinary, try
39 devel pair installed). It helps in a lot of cases (it also supports ESD, ARTS, and 39 <CODE>-ao sdl</CODE> (NOTE: you need to have SDL libraries and header files
40 up/downsampling. /esd is GNOME's, arts is KDE's sound daemon/).</LI> 40 installed). The SDL audio driver helps in a lot of cases and also supports ESD,
41 <LI>if you have ALSA version 0.5, then you ALMOST always have to use <I>-ao alsa5</I> , 41 ARTS, and up/downsampling. (ESD is the sound daemon from GNOME, ARTS is from KDE.)</LI>
42 since 0.5 has buggy OSS emulation code, and will <B>crash MPlayer</B> with 42 <LI>If you have ALSA version 0.5, then you almost always have to use <CODE>-ao alsa5</CODE> ,
43 since ALSA 0.5 has buggy OSS emulation code, and will <B>crash MPlayer</B> with
43 a message like this:<BR> 44 a message like this:<BR>
44 <UL> 45 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></LI>
45 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></UL> 46 <LI>If you have ALSA version 0.9 you may choose between <CODE>-ao oss</CODE> and
46 </LI> 47 <CODE>-ao sdl</CODE>. You can also use <CODE>-ao alsa9</CODE>. It works, but
47 <LI>if you have ALSA version 0.9, use <I>-ao oss</I> or <I>-ao sdl</I> as you 48 there are problems like lost sync and disappearing audio.</LI>
48 wish. You can also use <I>-ao alsa9</I> as it works now, however it has many 49 </UL>
49 problems (losing sync, disappearing audio, etc).</LI>
50 </UL></P>
51 50
52 <P>On <B>Solaris/FreeBSD</B> systems, use the SUN audio driver with the 51 <P>On <B>Solaris/FreeBSD</B> systems, use the SUN audio driver with the
53 <I>-ao sun</I> option, otherwise you'll have no video, nor audio playing.</P> 52 <CODE>-ao sun</CODE> option, otherwise neither video nor audio will work.</P>
54 53
55 <P><B><A NAME=2.3.2.1>2.3.2.1. Soundcard experiences, recommendations</A></B></P> 54 <P><B><A NAME=2.3.2.1>2.3.2.1. Sound Card experiences, recommendations</A></B></P>
56 55
57 <P><TABLE BORDER=0 WIDTH=100%> 56 <TABLE BORDER=0 WIDTH="100%">
58 <TD COLSPAN=3><B><FONT CLASS="text">VIA onboard chipset (via82cxxx) 48Khz only</B></TD><TR> 57 <TR><TD COLSPAN=3><B><FONT CLASS="text">VIA onboard chipset (via82cxxx) 48kHz only</B></TD><TR>
59 <TD></TD><TD><FONT CLASS="text">Driver:</TD><TD><FONT CLASS="text"> from <A HREF="http://sourceforge.net/project/showfiles.php?group_id=3242&release_id=59602">here</A></TD><TR> 58 <TD></TD><TD><FONT CLASS="text">Driver:</TD><TD><FONT CLASS="text"> from <A HREF="http://sourceforge.net/project/showfiles.php?group_id=3242&amp;release_id=59602">here</A></TD><TR>
60 59
61 <TD COLSPAN=3><B><FONT CLASS="text">Aureal Vortex 2</B></TD><TR> 60 <TD COLSPAN=3><B><FONT CLASS="text">Aureal Vortex 2</B></TD><TR>
62 <TD>&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">no driver</TD><TR> 61 <TD>&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">no driver</TD><TR>
63 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR> 62 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR>
64 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">no driver</TD><TR> 63 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">no driver</TD><TR>
72 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR> 71 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR>
73 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK</TD><TR> 72 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK</TD><TR>
74 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR> 73 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR>
75 74
76 <TD COLSPAN=3><B><FONT CLASS="text">SB Live!</B></TD><TR> 75 <TD COLSPAN=3><B><FONT CLASS="text">SB Live!</B></TD><TR>
77 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">Analog OK, SP/DIF won't work</TD><TR> 76 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">Analog OK, SP/DIF not working</TD><TR>
78 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">Both OK</TD><TR> 77 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">Both OK</TD><TR>
79 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">192</TD><TR> 78 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">192</TD><TR>
80 79
81 <TD COLSPAN=3><B><FONT CLASS="text">SB AWE 64</B></TD><TR> 80 <TD COLSPAN=3><B><FONT CLASS="text">SB AWE 64</B></TD><TR>
82 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">max 44kHz</TD><TR> 81 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">max 44kHz</TD><TR>
83 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">48kHz sounds shit</TD><TR> 82 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">48kHz sounds bad</TD><TR>
84 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR> 83 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR>
85 84
86 <TD COLSPAN=3><B><FONT CLASS="text">Gravis UltraSound ACE</B></TD><TR> 85 <TD COLSPAN=3><B><FONT CLASS="text">Gravis UltraSound ACE</B></TD><TR>
87 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK</TD><TR> 86 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK</TD><TR>
88 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK</TD><TR> 87 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK</TD><TR>
102 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK (hissing) (?)</TD><TR> 101 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK (hissing) (?)</TD><TR>
103 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK (?)</TD><TR> 102 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK (?)</TD><TR>
104 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR> 103 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR>
105 104
106 <TD COLSPAN=3><B><FONT CLASS="text">Yamaha cards (*ymf*)</B></TD><TR> 105 <TD COLSPAN=3><B><FONT CLASS="text">Yamaha cards (*ymf*)</B></TD><TR>
107 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK (?) (maybe -ao sdl)</TD><TR> 106 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK (?) (maybe <CODE>-ao sdl</CODE>)</TD><TR>
108 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK only with ALSA 0.5 with OSS emulation <B>AND</B> <I>-ao sdl</I> (!) (?)</TD><TR> 107 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK only with ALSA 0.5 with OSS emulation <B>AND</B> <CODE>-ao sdl</CODE> (!) (?)</TD><TR>
109 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR> 108 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR>
110 109
111 <TD COLSPAN=3><B><FONT CLASS="text">Cards with envy24 chips (like Terratec EWS88MT)</B></TD><TR> 110 <TD COLSPAN=3><B><FONT CLASS="text">Cards with envy24 chips (like Terratec EWS88MT)</B></TD><TR>
112 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">?</TD><TR> 111 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">?</TD><TR>
113 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR> 112 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR>
114 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">?</TD><TR> 113 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">?</TD><TR>
115 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR> 114 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR>
116 115
117 <TD COLSPAN=3><B><FONT CLASS="text">PC Speaker or DAC</B></TD><TR> 116 <TD COLSPAN=3><B><FONT CLASS="text">PC Speaker or DAC</B></TD><TR>
118 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">OK (<I>use the SDL driver : -ao sdl</I>)</TD><TR> 117 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">OK (Use the SDL driver: <CODE>-ao sdl</CODE>)</TD><TR>
119 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">no driver</TD><TR> 118 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">no driver</TD><TR>
120 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">the driver emulates 44.1 maybe more</TD><TR> 119 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">The driver emulates 44.1, maybe more.</TD><TR>
121 <TD></TD><TD><FONT CLASS="text">Driver:</TD><TD><FONT CLASS="text"><A HREF="ftp://ftp.infradead.org/pub/pcsp">ftp://ftp.infradead.org/pub/pcsp</A></TD><TR> 120 <TD></TD><TD><FONT CLASS="text">Driver:</TD><TD><FONT CLASS="text"><A HREF="ftp://ftp.infradead.org/pub/pcsp">ftp://ftp.infradead.org/pub/pcsp</A></TD>
122 </TABLE></P> 121 </TABLE>
123 122
124 <P><UL> 123 <UL>
125 <LI>on Linux, use at least kernel 2.4 if possible, 2.2 isn't tested 124 <LI>On Linux, a 2.4.x kernel is highly recommended. Kernel 2.2 is not tested.</LI>
126 <LI>if sound clicks when playing from CD-ROM, turn on IRQ unmasking ! 125 <LI>If sound clicks when playing from CD-ROM, turn on IRQ unmasking, e.g.
127 for example "hdparm -u1 /dev/cdrom" (see "man hdparm" !!!) 126 <CODE>hdparm -u1 /dev/cdrom</CODE> (<CODE>man hdparm</CODE>). This is
128 This is recommended anyways... (for XMMS, etc...) 127 generally beneficial and described more detailed in the
129 Read section <A HREF="cd-dvd.html#4.1">4.1</A>. 128 <A HREF="cd-dvd.html#4.1">CD-ROM section</A>.</LI>
130 <LI>don't use your soundcard by other application ( for ex. XMMS ) ! 129 <LI>Sharing your sound card with another application like XMMS is <B>strongly discouraged</B>!
131 if you use ESD, start MPlayer with the '-vo sdl:esd' option ! 130 If the other sound application is using ESD, start <B>MPlayer</B> with the <CODE>-vo sdl:esd</CODE> option
132 <LI>Please tell us how MPlayer and your soundcard(s) worked together! 131 to combine both sound streams! In fact, the option <CODE>-vo sdl:esd</CODE> could be used with ESD
133 </UL></P> 132 even when playing <B>Mplayer</B> alone.</LI>
133 <LI>Feedback to this document is welcome. Please tell us how <B>MPlayer</B> and
134 your sound card(s) worked together.</LI>
135 </UL>
134 136
135 137
136 <P><B><A NAME=2.3.2.2>2.3.2.2. Audio plugins</A></B></P> 138 <P><B><A NAME=2.3.2.2>2.3.2.2. Audio plugins</A></B></P>
137 139
138 <P><B>MPlayer</B> has support for audio plugins. Audio plugins can be used for 140 <P><B>MPlayer</B> has support for audio plugins. Audio plugins can be used for
139 changing the properties of the audio data before the sound reaches the sound 141 changing the properties of the audio data before the sound reaches the sound
140 card. They are enabled using the <CODE>-aop</CODE> switch followed by the 142 card. They are enabled using the <CODE>-aop</CODE> switch which takes a
141 <CODE>list=plugin1,plugin2,...</CODE> switch. The <CODE>list</CODE> switch is 143 <CODE>list=plugin1,plugin2,...</CODE> argument. The <CODE>list</CODE> argument
142 required and determines which plugins that should be used and in which order 144 is required and determines which plugins should be used and in which order they
143 they should be executed, example: 145 should be executed. Example:
144 </P> 146 </P>
145 147
146 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample,format</CODE></P> 148 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample,format</CODE></P>
147 149
148 <P>would run the sound through the resampling plugin followed by the format 150 <P>would run the sound through the resampling plugin followed by the format
149 plugin. 151 plugin.
150 </P> 152 </P>
151 153
152 <P>The plugins can also have switches that changes their behaviour. These 154 <P>The plugins can also have switches that change their behavior. These
153 switches are explained in detail in the sections below. A plugin will execute 155 switches are explained in detail in the sections below. A plugin will execute
154 using default settings if it's switches are omitted. Example of how to use 156 using default settings if its switches are omitted. Here is an example of how
155 plugins in combination with plugin specific switches: 157 to use plugins in combination with plugin specific switches:
156 </P> 158 </P>
157 159
158 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop 160 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop
159 list=resample,format:fout=48000:format=0x8</CODE> 161 list=resample,format:fout=44100:format=0x8</CODE>
160 </P> 162 </P>
161 163
162 <P>would set the output frequency of the resample plugin to 44100Hz and the 164 <P>would set the output frequency of the resample plugin to 44100Hz and the
163 output format of the format plugin to AFMT_U8. 165 output format of the format plugin to AFMT_U8.
164 </P> 166 </P>
166 <P>Currently audio plugins can not be used in <B>MEncoder</B>.</P> 168 <P>Currently audio plugins can not be used in <B>MEncoder</B>.</P>
167 169
168 170
169 <P><B><A NAME=2.3.2.2.1>2.3.2.2.1. Up/Downsampling</A></B></P> 171 <P><B><A NAME=2.3.2.2.1>2.3.2.2.1. Up/Downsampling</A></B></P>
170 172
171 <P><B>MPlayer</B> fully supports up/down sampling of the sound. This plugin can 173 <P><B>MPlayer</B> fully supports up/downsampling of the sound. This plugin can
172 for example be used if you have a fixed frequency sound card or if you are 174 be used if you have a fixed frequency sound card or if you are
173 stuck with an olqd sound card that is only capable of max 44.1kHz. 175 stuck with an old sound card that is only capable of max 44.1kHz.
174 Limitations in your hardware are not auto detected, so you have to specify 176 Limitations in your hardware are not auto detected, so you have to specify
175 the sample frequency explicitly. This plugin has one switch: 177 the sample frequency explicitly. This plugin has one switch:
176 <CODE>fout</CODE> which is used for setting the desired output sample 178 <CODE>fout</CODE> which is used for setting the desired output sample
177 frequency, it defaults to 48kHz, and is given in 179 frequency. It defaults to 48kHz, and is given in
178 &lt;Hz&gt;. 180 &lt;Hz&gt;.
179 </P> 181 </P>
180 182
181 <P>Usage :<BR> 183 <P>Usage:<BR>
182 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample:fout=&lt;required 184 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample:fout=&lt;required
183 frequency in Hz, like 44100&gt;</CODE></P> 185 frequency in Hz, like 44100&gt;</CODE></P>
184 186
187 <P>Note that the output frequency should not be scaled up from the default value.
188 Scaling up will cause the audio and video streams to be played in slow motion
189 in addition to audio distortion.</P>
185 190
186 <P><B><A NAME=2.3.2.2.2>2.3.2.2.2. Surround Sound decoding</A></B></P> 191 <P><B><A NAME=2.3.2.2.2>2.3.2.2.2. Surround Sound decoding</A></B></P>
187 192
188 <P><B>MPlayer</b> has an audio plugin that can decode matrix encoded 193 <P><B>MPlayer</B> has an audio plugin that can decode matrix encoded
189 surround sound. Dolby Surround is an example of a matrix encoded format.</p> 194 surround sound. Dolby Surround is an example of a matrix encoded format.
190 195 Many files with 2 channel audio actually contain matrixed surround sound.
191 <P>Many files with 2 channel audio actually contain matrixed surround 196 To use this feature you need a sound card supporting at least 4 channels.</P>
192 sound.</p> 197
193 198 <P>Usage:<BR>
194 <P>To use this feature, you will need a sound-card supporting at least 4 channels.</P>
195
196 <P>Usage :<BR>
197 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=surround</CODE></P> 199 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=surround</CODE></P>
198 200
199 201
200 <P><B><A NAME=2.3.2.2.3>2.3.2.2.3. Sample format converter</A></B></P> 202 <P><B><A NAME=2.3.2.2.3>2.3.2.2.3. Sample format converter</A></B></P>
201 203
202 <P>If your sound card driver doesn't support signed 16bit int, this plugin can 204 <P>If your sound card driver does not support signed 16bit <CODE>int</CODE> data type,
205 this plugin can
203 be used to change the format to one which your sound card can understand. It 206 be used to change the format to one which your sound card can understand. It
204 has one switch <CODE>format</CODE> which can be set to one of the numbers 207 has one switch, <CODE>format</CODE>, which can be set to one of the numbers
205 found in libao2/afmt.h. This plugin is hardly ever needed and is intended for 208 found in <CODE>libao2/afmt.h</CODE>. This plugin is hardly ever needed and is
206 advanced users. Observe that this plugin only changes the sample format and 209 intended for advanced users. Keep in mind that this plugin only changes the
207 not the sample frequency or the number of channels. 210 sample format and not the sample frequency or the number of channels.
208 </P> 211 </P>
209 212
210 <P>Usage :<BR> 213 <P>Usage:<BR>
211 &nbsp;&nbsp;<CODE>mplayer media.avi -aop 214 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
212 list=format:format=&lt;required output format&gt;</CODE> 215 list=format:format=&lt;required output format&gt;</CODE>
213 </P> 216 </P>
214 217
215 218
216 <P><B><A NAME=2.3.2.2.4>2.3.2.2.4. Delay</A></B></P> 219 <P><B><A NAME=2.3.2.2.4>2.3.2.2.4. Delay</A></B></P>
217 220
218 <P>This plugin delays the sound and is intended as an example of how to develop 221 <P>This plugin delays the sound and is intended as an example of how to develop
219 new plugins. It can not be used for anything useful from users perspective 222 new plugins. It can not be used for anything useful from a users perspective
220 and is mentioned here for the sake of completeness only. Do not use this 223 and is mentioned here for the sake of completeness only. Do not use this
221 plugin unless you are a developer.</P> 224 plugin unless you are a developer.</P>
222 225
223 <P><B><A NAME=2.3.2.2.5>2.3.2.2.5. Software volume control</A></B></P> 226 <P><B><A NAME=2.3.2.2.5>2.3.2.2.5. Software volume control</A></B></P>
224 227
225 <P>This plugin is a software replacement for the volume control, and 228 <P>This plugin is a software replacement for the volume control, and
226 can be used in machines with broken mixer device. It can also be 229 can be used on machines with a broken mixer device. It can also be
227 used if one wants to change the output volume from <B>MPlayer</B> 230 used if one wants to change the output volume of <B>MPlayer</B>
228 without changing the PCM volume setting in the mixer. It has one 231 without changing the PCM volume setting in the mixer. It has one
229 switch <CODE>volume</CODE> that is used for setting the initial 232 switch <CODE>volume</CODE> that is used for setting the initial
230 sound level. The initial sound level can be set to values between 0 233 sound level. The initial sound level can be set to values between 0
231 and 255 and defaults to 101 which equals 0dB amplification. Use this 234 and 255 and defaults to 101 which equals 0dB amplification. Use this
232 plugin with caution since it can reduce the signal to noise ratio of 235 plugin with caution since it can reduce the signal to noise ratio of
233 the sound. In most cases it is best to set the level for the PCM 236 the sound. In most cases it is best to set the level for the PCM
234 sound to max, leave this plugin out and control the output level to 237 sound to max, leave this plugin out and control the output level to
235 your speakers with the mixers master volume control. If there is an 238 your speakers with the master volume control of the mixer. If there is an
236 external amplifier connected to the computer (this is almost always 239 external amplifier connected to the computer (this is almost always
237 the case), the noise level can be minimized by adjusting the master 240 the case), the noise level can be minimized by adjusting the master
238 level and the volume knob on the amplifier until the hissing noise 241 level and the volume knob on the amplifier until the hissing noise
239 in the background is gone. 242 in the background is gone.
240 </P> 243 </P>
241 244
242 <P>Usage :<BR> 245 <P>Usage:<BR>
243 &nbsp;&nbsp;<CODE>mplayer media.avi -aop 246 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
244 list=volume:volume=&lt;0-255&gt;</CODE> 247 list=volume:volume=&lt;0-255&gt;</CODE>
245 </P> 248 </P>
246 249
247 <P>This plugin also have a compressor or "soft-clipping" capabilities. 250 <P>This plugin also has compressor or "soft-clipping" capabilities.
248 Compression can be used if the dynamic range of the sound is very 251 Compression can be used if the dynamic range of the sound is very
249 high or if the dynamic range of the loudspeakers is very 252 high or if the dynamic range of the loudspeakers is very
250 low. Observe that this feature creates distortion and should be 253 low. Be aware that this feature creates distortion and should be
251 considered a last resort. 254 considered a last resort.
252 </P> 255 </P>
253 256
254 <P>Usage :<BR> 257 <P>Usage:<BR>
255 &nbsp;&nbsp;<CODE>mplayer media.avi -aop 258 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
256 list=volume:softclip</CODE> 259 list=volume:softclip</CODE>
257 </P> 260 </P>
258 261
259 262
260 <P><B><A NAME=2.3.2.2.6>2.3.2.2.6. Extrastereo</A></B></P> 263 <P><B><A NAME=2.3.2.2.6>2.3.2.2.6. Extrastereo</A></B></P>
261 264
262 <P>This plugin increases (linearly) the difference between left and right 265 <P>This plugin (linearly) increases the difference between left and right
263 channels (as the XMMS extrastereo plugin) which has some of "live" effect 266 channels (like the XMMS extrastereo plugin) which gives some sort of "live"
264 on playback. 267 effect to playback.
265 </P> 268 </P>
266 269
267 <P>Usage :<BR> 270 <P>Usage:<BR>
268 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo</CODE><BR> 271 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo</CODE><BR>
269 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo:mul=3.45</CODE></P> 272 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo:mul=3.45</CODE></P>
270 273
271 <P>The default coefficient (<CODE>mul</CODE>) is a float number that defaults 274 <P>The default coefficient (<CODE>mul</CODE>) is a float number that defaults
272 to 2.5. If you set it to 0.0, you will have a mono sound (average of both 275 to 2.5. If you set it to 0.0, you will have mono sound (average of both
273 channels), if you set it to 1.0, sound will be unchanged.</P> 276 channels). If you set it to 1.0, sound will be unchanged.</P>
274 277
275 278
276 <P><B><A NAME=2.3.2.2.7>2.3.2.2.7. Volume normalizer</A></B></P> 279 <P><B><A NAME=2.3.2.2.7>2.3.2.2.7. Volume normalizer</A></B></P>
277 280
278 <P>This plugin maximizes the volume while maintaining distortionless 281 <P>This plugin maximizes the volume without distorting the sound.</P>
279 sound. 282
280 </P> 283 <P>Usage:<BR>
281
282 <P>Usage :<BR>
283 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=volnorm</CODE><BR> 284 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=volnorm</CODE><BR>
284 285
285 286
286 <P><B><A NAME=2.3.2.2.8>2.3.2.2.8. Surround</A></B></P> 287 <P><B><A NAME=2.3.2.2.8>2.3.2.2.8. Surround</A></B></P>
287 288