annotate DOCS/sound.html @ 4775:080cf3df3e4e

improved event handling, implemented working pause that does not flush all buffers, work around a deadlock in the new threadsafe version 1.5 of libaudio by Tobias Diedrich
author atmos4
date Wed, 20 Feb 2002 22:45:48 +0000
parents fd65c9bdcc76
children 9b2b09d3ff8b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
1 <HTML>
1704
a2e1432f7ac3 Arial font
gabucino
parents: 1686
diff changeset
2 <BODY BGCOLOR=white>
a2e1432f7ac3 Arial font
gabucino
parents: 1686
diff changeset
3
a2e1432f7ac3 Arial font
gabucino
parents: 1686
diff changeset
4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
5
2745
62bcea66003e oh my god what have i done...
gabucino
parents: 2561
diff changeset
6 <P><B><A NAME=2.3.2>2.3.2. Audio output devices</A></P></B>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
7
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
8 <P><B>MPlayer</B>'s audio interface is called <I>libao2</I>. It currently
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
9 contains these drivers :</P>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
10
1905
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
11 <TABLE BORDER=0>
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
12
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
13 <TD COLSPAN=4><P><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>General:</B></P></TD>
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
14
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
15 <TR><TD>&nbsp;&nbsp;</TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>oss</TD><TD>&nbsp;&nbsp;</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS (ioctl) driver</TD></TR>
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
16 <TR><TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>sdl</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>SDL driver (supports up/downsampling, <B>ESD</B>, <B>ARTS</B> etc)</TD></TR>
3276
e279cc05f189 -ao NAS support by Tobias Diedrich <ranma@gmx.at>
arpi
parents: 3222
diff changeset
17 <TR><TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>nas</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>NAS (Network Audio System) driver</TD></TR>
1905
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
18 <TR><TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>alsa5</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>native ALSA 0.5 driver</TD></TR>
2060
0048c2a8cc95 alsa9 driver
gabucino
parents: 1905
diff changeset
19 <TR><TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>alsa9</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>native ALSA 0.9 driver (works, but has problems -> use OSS)</TD></TR>
1905
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
20 <TR><TD></TD><TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>sun</TD><TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>SUN audio driver (/dev/audio) for BSD and Solaris8 users</TD></TR>
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
21
8d773b35751e *** empty log message ***
gabucino
parents: 1892
diff changeset
22 </TABLE>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
23
3857
94568d035e75 defucking again
gabucino
parents: 3671
diff changeset
24 <P>The fact is, Linux soundcard drivers are usually bad, and always as
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
25 incompatible as they can be. It MAY take a while to find your optimal settings.</P>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
26 <P><UL>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
27 <LI>if you have OSS as driver, first try with <I>-ao oss</I> (this is the default).
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
28 If you experience glitches, halts or anything out of the ordinary, have a
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
29 look at <I>-ao sdl</I> (NOTE: of course you'll have to have a new SDL library and its
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
30 devel pair installed). It helps in a lot of cases (it also supports ESD, ARTS, and
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
31 up/downsampling. /esd is GNOME's, arts is KDE's sound daemon/).</LI>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
32 <LI>if you have ALSA version 0.5, then you ALMOST always have to use <I>-ao alsa5</I> ,
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
33 since 0.5 has buggy OSS emulation code, and will <B>crash MPlayer</B> with
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
34 a message like this:<BR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
35 <UL>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
36 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></UL>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
37 </LI>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
38 <LI>if you have ALSA version 0.9, use <I>-ao oss</I> or <I>-ao sdl</I> as you
2060
0048c2a8cc95 alsa9 driver
gabucino
parents: 1905
diff changeset
39 wish. You can also use <I>-ao alsa9</I> as it works now, however it has many
0048c2a8cc95 alsa9 driver
gabucino
parents: 1905
diff changeset
40 problems (losing sync, disappearing audio, etc).</LI>
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
41 </UL></P>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
42
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
43 <P>On <B>Solaris/FreeBSD</B> systems, use the SUN audio driver with the
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
44 <I>-ao sun</I> option, otherwise you'll have no video, nor audio playing.</P>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
45
2745
62bcea66003e oh my god what have i done...
gabucino
parents: 2561
diff changeset
46 <P><B><A NAME=2.3.2.1>2.3.2.1. Soundcard experiences, recommendations</A></B></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
47
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
48 <P><TABLE BORDER=0 WIDTH=100%>
3190
9c9a9b5f0a9e VIA 8c2qwerqwer driver added
gabucino
parents: 2999
diff changeset
49 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>VIA onboard chipset (via82cxxx) 48Khz only</B></TD><TR>
9c9a9b5f0a9e VIA 8c2qwerqwer driver added
gabucino
parents: 2999
diff changeset
50 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Driver:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> from <A HREF="http://sourceforge.net/project/showfiles.php?group_id=3242&release_id=59602">here</A></TD><TR>
9c9a9b5f0a9e VIA 8c2qwerqwer driver added
gabucino
parents: 2999
diff changeset
51
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
52 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Aureal Vortex 2</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
53 <TD>&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>no driver</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
54 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS/Pro:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
55 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>no driver</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
56 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD>48</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
57 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Driver:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF="http://aureal.sourceforge.net">aureal.sourceforge.net</A></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
58 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Driver2:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> from <A HREF="http://makacs.poliod.hu/~pontscho/aureal/au88xx-1.1.3.tar.bz2">here</A><BR>
2999
7a4eb5a45288 only 32k.
pontscho
parents: 2745
diff changeset
59 (<I>buffer size increased to 32k</I>)</TD><TR>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
60
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
61 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>GUS PnP</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
62 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>no driver</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
63 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS/Pro:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
64 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
65 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>48</TD><TR>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
66
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
67 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>SB Live!</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
68 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
69 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>(?)</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
70 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>48</TD><TR>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
71
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
72 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>SB AWE 64</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
73 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>max 44kHz</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
74 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>48kHz sounds shit</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
75 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>48</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
76
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
77 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Gravis UltraSound ACE</B></TD><TR>
4469
ac00b30ac80f only GUS MAX can do 48khz
gabucino
parents: 3931
diff changeset
78 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>not OK</TD><TR>
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
79 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
4469
ac00b30ac80f only GUS MAX can do 48khz
gabucino
parents: 3931
diff changeset
80 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>44</TD><TR>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
81
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
82 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Gravis UltraSound MAX</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
83 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
84 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK (?)</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
85 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>48</TD><TR>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
86
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
87 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ESS 688</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
88 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
89 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK (?)</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
90 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>48</TD><TR>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
91
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
92 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>C-Media cards (which ones?)</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
93 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>not OK (hissing) (?)</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
94 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK (?)</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
95 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>?</TD><TR>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
96
3222
71a3d16f344f hmm many things.. (sorry now i'm a bit confused:)
gabucino
parents: 3190
diff changeset
97 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Yamaha cards (*ymf*)</B></TD><TR>
2561
2bbe67807bb0 *** empty log message ***
gabucino
parents: 2202
diff changeset
98 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>not OK (?) (maybe -ao sdl)</TD><TR>
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
99 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK only with ALSA 0.5 with OSS emulation <B>AND</B> <I>-ao sdl</I> (!) (?)</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
100 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>?</TD><TR>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
101
3438
963b39283f48 fixes, and some new stuff. sorry forgot :)
gabucino
parents: 3276
diff changeset
102 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Cards with envy24 chips (like Terratec EWS88MT)</B></TD><TR>
963b39283f48 fixes, and some new stuff. sorry forgot :)
gabucino
parents: 3276
diff changeset
103 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>?</TD><TR>
963b39283f48 fixes, and some new stuff. sorry forgot :)
gabucino
parents: 3276
diff changeset
104 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS/Pro:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK</TD><TR>
963b39283f48 fixes, and some new stuff. sorry forgot :)
gabucino
parents: 3276
diff changeset
105 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>?</TD><TR>
963b39283f48 fixes, and some new stuff. sorry forgot :)
gabucino
parents: 3276
diff changeset
106 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>?</TD><TR>
963b39283f48 fixes, and some new stuff. sorry forgot :)
gabucino
parents: 3276
diff changeset
107
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
108 <TD COLSPAN=3><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>PC Speaker or DAC</B></TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
109 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OSS:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>OK (<I>use the SDL driver : -ao sdl</I>)</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
110 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>ALSA:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>no driver</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
111 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Max kHz:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>the driver emulates 44.1 maybe more</TD><TR>
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
112 <TD></TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Driver:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><A HREF="ftp://ftp.infradead.org/pub/pcsp">ftp://ftp.infradead.org/pub/pcsp</A></TD><TR>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
113 </TABLE></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
114
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
115 <P><UL>
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
116 <LI>on Linux, use at least kernel 2.4 if possible, 2.2 isn't tested
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
117 <LI>if sound clicks when playing from CD-ROM, turn on IRQ unmasking !
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
118 for example "hdparm -u1 /dev/cdrom" (see "man hdparm" !!!)
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
119 This is recommended anyways... (for XMMS, etc...)
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
120 Read section <A HREF="cd-dvd.html#4.1">4.1</A>.
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
121 <LI>don't use your soundcard by other application ( for ex. XMMS ) !
2202
8e5cb55ffc63 tipofyx
gabucino
parents: 2060
diff changeset
122 if you use ESD, start MPlayer with the '-vo sdl:esd' option !
1892
70dbd25c128c jo sok ilyen ize.
gabucino
parents: 1704
diff changeset
123 <LI>Please tell us how MPlayer and your soundcard(s) worked together!
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
124 </UL></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
125
3671
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
126
4536
fd65c9bdcc76 HTML fix
gabucino
parents: 4508
diff changeset
127 <P><B><A NAME=2.3.2.2>2.3.2.2. Audio plugins</A></B></P>
3671
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
128
4508
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
129 <P><B>MPlayer</B> has support for audio plugins. Audio plugins can be used for
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
130 changing the properties of the audio data before the sound reaches the sound
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
131 card. They are enabled using the <CODE>-aop</CODE> switch followed by the
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
132 <CODE>list=plugin1,plugin2,...</CODE> switch. The <CODE>list</CODE> switch is
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
133 required and determines which plugins that should be used and in which order
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
134 they should be executed, example:
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
135 </P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
136
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
137 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample,format</CODE></P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
138
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
139 <P>would run the sound through the resampling plugin followed by the format
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
140 plugin.
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
141 </P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
142
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
143 <P>The plugins can also have switches that changes their behaviour. These
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
144 switches are explained in detail in the sections below. A plugin will execute
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
145 using default settings if it's switches are omitted. Example of how to use
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
146 plugins in combination with plugin specific switches:
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
147 </P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
148
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
149 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
150 list=resample,format:fout=48000:format=0x8</CODE>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
151 </P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
152
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
153 <P>would set the output frequency of the resample plugin to 44100Hz and the
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
154 output format of the format plugin to AFMT_U8.
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
155 </P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
156
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
157 <P>Currently audio plugins can not be used in <B>MEncoder</B>.</P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
158
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
159
4536
fd65c9bdcc76 HTML fix
gabucino
parents: 4508
diff changeset
160 <P><B><A NAME=2.3.2.2.1>2.3.2.2.1. Up/Downsampling</A></B></P>
3671
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
161
4508
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
162 <P><B>MPlayer</B> fully supports up/down sampling of the sound. This plugin can
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
163 for example be used if you have a fixed frequency sound card or if you are
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
164 stuck with an olqd sound card that is only capable of max 44.1kHz.
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
165 Limitations in your hardware are not auto detected, so you have to specify
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
166 the sample frequency explicitly. This plugin has one switch:
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
167 <CODE>fout</CODE> which is used for setting the desired output sample
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
168 frequency, it defaults to 48kHz, and is given in
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
169 &lt;Hz&gt;.
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
170 </P>
3671
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
171
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
172 <P>Usage :<BR>
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
173 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample:fout=&lt;required
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
174 frequency in Hz, like 44100&gt;</CODE></P>
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
175
e84d8f81a120 'Plugins' subsection in Sound section
gabucino
parents: 3438
diff changeset
176
4536
fd65c9bdcc76 HTML fix
gabucino
parents: 4508
diff changeset
177 <P><B><A NAME=2.3.2.2.2>2.3.2.2.2. Surround Sound decoding</A></B></P>
3931
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
178
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
179 <P><B>MPlayer</b> has an audio plugin that can decode matrix encoded
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
180 surround sound. Dolby Surround is an example of a matrix encoded format.</p>
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
181
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
182 <P>Many files with 2 channel audio actually contain matrixed surround
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
183 sound.</p>
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
184
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
185 <P>To use this feature, you will need a sound-card supporting at least 4 channels.</P>
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
186
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
187 <P>Usage :<BR>
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
188 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=surround</CODE></P>
ef59dc91aaaf applied Steve's patch
gabucino
parents: 3857
diff changeset
189
4508
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
190
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
191 <P><B><A NAME=2.3.2.2.3>2.3.2.2.3. Sample format converter</A></B></P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
192
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
193 <P>If your sound card driver doesn't support signed 16bit int, this plugin can
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
194 be used to change the format to one which your sound card can understand. It
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
195 has one switch <CODE>format</CODE> which can be set to one of the numbers
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
196 found in libao2/afmt.h. This plugin is hardly ever needed and is intended for
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
197 advanced users. Observe that this plugin only changes the sample format and
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
198 not the sample frequency or the number of channels.
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
199 </P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
200
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
201 <P>Usage :<BR>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
202 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
203 list=format:format=&lt;required output format&gt;</CODE>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
204 </P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
205
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
206
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
207 <P><B><A NAME=2.3.2.2.4>2.3.2.2.4. Delay</A></B></P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
208
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
209 <P>This plugin delays the sound and is intended as an example of how to develop
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
210 new plugins. It can not be used for anything useful from users perspective
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
211 and is mentioned here for the sake of completeness only. Do not use this
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
212 plugin unless you are a developer.</P>
fb02f169e8e2 added more audio plugin documentation
gabucino
parents: 4469
diff changeset
213
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
214 </BODY>
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
215 </HTML>