Linux °æ (¾«»ªÇø)
·¢ÐÅÈË: netiscpu (˵²»Èç×ö), ÐÅÇø: Unix
±ê Ìâ: [CLDP]Sound Playing-HOWTO (ÖÐÎÄ)
·¢ÐÅÕ¾: ×Ï ¶¡ Ïã (Tue May 19 08:22:17 1998), תÐÅ
The Linux Sound Playing HOWTO ÖÐÒë°æ
×÷Õß: Yoo C. Chung, wacko@laplace.snu.ac.kr
ÒëÕß: J.S. Lin, r6921068@ms.cc.ntu.edu.tw
v1.5, 7 November 1997
Abstract
±¾ÎļþÁгö Linux Éϲ¥·Å¸÷ʽÉùÒô¸ñʽµÄÓ¦ÓóÌʽ.
CONTENTS
1. ½éÉÜ ..................................................................... 1
1.1 ±¾ÎļþµÄ°æȨ ......................................................... 1
1.2 ËùÁгöÓ¦ÓóÌʽµÄ°æȨ ................................................. 1
1.3 ÄÄ¡õ¿ÉÒÔÈ¡µÃ±¾Îļþ ................................................... 1
1.4 »Øº¯ ................................................................. 2
1.5 ¸Ðл ................................................................. 2
2. ²¥·Å¸÷ÖÖÉùÒô¸ñʽ ......................................................... 2
2.1 MIDI ................................................................. 2
2.2 Modules .............................................................. 3
2.3 MPEG ÒôÁ÷ ............................................................ 6
2.4 WAV .................................................................. 9
2.5 ÆäËü¶«Î÷ ............................................................. 9
3. ÆäËûʵÓô¦ÀíÉùÒôµÄÓ¦Óù¤¾ß .............................................. 11
3.1 volume .............................................................. 11
3.2 Sound Studio ........................................................ 11
3.3 Tickle Music ........................................................ 12
4. ²Î¿¼×ÊÁÏ ................................................................ 12
i
1. ½éÉÜ
Õâ·ÝÎļþÊÇ Sound Playing HOWTO (ÈçºÎ²¥·ÅÉùÒô).
ËüÁгöºÜ¶àÉùÒô¸ñʽÒÔ¼°ÓÃÀ´²¥·ÅËüÃǵÄÓ¦ÓóÌʽ.
ËüÒ²ÁгöһЩʹÓÃÔÚÕâ³ÌʽӦÓóÌʽµÄ¹¤×÷[hacks]ºÍÉ豸.
»¹ÓÐһЩÆäËûÓëÉùÒôÓйØ,µ«Óë²¥·ÅûÓÐÖ±½ÓÓйصÄÓ¦ÓóÌʽ. È»¶ø,´ËÎļþ¾Í ûÓÐ
ÃèÊöÈçºÎ¼ÜÉèÖ§Ô®ÉùÒôµÄ Linux ϵͳ. Çë²Î¿¼ Linux Sound HOWTO ì¶ Jeff Tranter
È¡µÃ°²×°Ö§Ô®ÉùÒôµÄ Linux ϵͳ֮²½ÖèÒÔ¼°ËùÖ§Ô®µÄÓ²Ìå.
ÔÚÕâ¶ùÖ»´¦ÀíÕý³£Ê¹ÓÃÕßµÄÉùÒôÓ¦ÓóÌʽ.»»»°Ëµ,
ËüÖ»¹ØÐÄÒ»°ãʹÓÃÕßÔÚÉùÒôµÄÓ¦ÓÃÉÏËùÐèÒªÖªµÀµÄÊÂÇé,
¶ø·ÇÆæÌصÄÒªËØÏñÊÇÓïÒôºÏ³É,»òÔÚ Sound HOWTO Ëù´¦ÀíµÄÓ²ÌåÒªËØ.
1.1 ±¾ÎļþµÄ°æȨ
Ö»Òª°æȨÐû¸æ±£ÁôÏÂ,±¾ÎļþÊÇ¿ÉÒÔ×ÔÓɵØÉ¢²¥ÓëÐÞ¸Ä
(Èç¹ûÈκεÄÐ޸Ķ¼ÄÜͨÎҵĻ°,ÎÒ»áºÜ¸Ð¼¤µÄ.)
È»¶ø,Ëü²»µÃ±»°ÚÔÚÈκθü½øÒ»²½µÄÏÞÖÆÏÂ, ¶øÇÒ,Ð޸ĵÄÎļþ±ØÐëÊǸúÕâƪһÑùµÄ°æȨ.
ÔÙÕß,×÷Õß¼°ÌṩÕßµÄÀ´Ô´µÄ¸½×¢Ò²±ØÐëÃ÷È·µÄÖ¸³ö. [Also, credit must be given
where due.]
1.2 ËùÁгöÓ¦ÓóÌʽµÄ°æȨ
Èç¹ûûÓÐÈκΰæȨµÄÌá¼°, ÄÇ÷á¸ÃÓ¦ÓóÌʽÊÇÔÚ GNU General Public License µÄ±£»¤ÏÂ.
1.3 ÄÄ¡õ¿ÉÒÔÈ¡µÃ±¾Îļþ
±¾Îļþ×î½üµÄ¹Ù·½°æ±¾¿ÉÈ¡µÃÔÚ Linux Documentation Project1 .
±¾Îļþ×î½üµÄ·Ç¹Ù·½°æ±¾¿ÉÈ¡µÃÔÚ <URL:http://laplace.snu.ac.kr/~wacko/howto/>.
±¾Îļþ(ÒѾ¹ýʱ)µÄº«ÎÄ°æ¿ÉÈ¡µÃÔÚ
<URL:http://laplace.snu.ac.kr/~wacko/howto/Sound-Playing-HOWTO.ks>.
____________________
1. <URL:http://sunsite.unc.edu/LDP/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 1
The Linux Sound Playing HOWTO ÖÐÒë°æ 2
±¾ÎļþµÄÈÕÎÄ°æ¿ÉÈ¡µÃÔÚ <URL:http://jf.gee.kyoto-u.ac.jp/JF/JF-ftp/euc/Sound-
Playing-HOWTO.euc>.
1.4 »Øº¯
ÎÒ²»ÊÇÎÞËù²»ÖªµÄ,¶øÇÒÔÚ´ËÎÒ²¢Ã»ÓÐʹÓùýËùÓÐÕâЩӦ¸Ã³Ìʽ (ÓÐЩÉõÖÁÎÒ»¹Ã»ÊÔ)
ËùÒÔÈôÓÐЩ´íÎóÊÇÃâ²»Á˵Ä.ÔÙÕß³Ìʽͨ³£³ÖÐøÔÚ·¢Õ¹ÖÐ, Òò´Ë,ÎļþºÜÈÝÒ׾ͻá¹ýʱ.
Òò´Ë,Èç¹ûÄã·¢ÏÖÈκδíÎó,ÇëÀ´Ðżĵ½ ÎÒµÄÐÅÏä Ö¸Õý.
½¨Òé»òÆäËûÓë±¾ÎļþÓйØÊÂÇéÒ²¶¼ºÜ»¶Ó.
1.5 ¸Ðл
ÔÚÕâHOWTOÎļþÖÐÌá¼°µÄËùÓÐÓ¦ÓóÌʽ×÷Õß,»¹ÓÐ, ÌṩÉùÒôÇý¶¯³ÌʽµÄHannu Savolainen
, ¼°Ìṩ×÷ҵϵͳ×î¸ù±¾µÄLinus Torvalds.
ÎÒ»¹Òª¸Ðл Raymond Nijssen (raymond@es.ele.tue.nl), Jeroen Rutten
(jeroen@es.ele.tue.nl), Antonio Perez (aperez@arrakis.es), Ian Jackson (ijack
son@gnu.org), ÒÔ¼° Peter Amstutz (amstpi@freenet.tlh.fl.us) ËùÌṩµÄ×ÊѶ¼°ÐÖú.
2. ²¥·Å¸÷ÖÖÉùÒô¸ñʽ
ÉùÒô¸ñʽÓкܶàÖÖ(WAV,MIDI, MPEG µÈ).
ÒÔÏÂÎÒÃÇÁгö¸÷ÖÖ¸ñʽÓë¿É²¥·ÅÆä¸ñʽµÄÓ¦ÓóÌʽ.
2.1 MIDI
MIDI ¾ÍÊÇ Musical Instrument Device InterfaceµÄËõд. MIDIµµ°¸Í¨³£ÓÐÑÓÉìµµÃû
.mid. ËüÃÇ°üº¬±àÅŵÄѶϢ, Ò²¾ÍÊǺÎʱÓÃʲ÷áÀÖÆ÷ÒÔºÎÖÖ·½Ê½À´²¥·Å...µÈµÄѶϢ.
¸ù¾ÝÄãµÄÓ²Ìå(Ò²ÐíÓëÄãÓÃÀ´²¥·ÅµÄÈíÌåÒ²ÓйØ),
²¥·Å³öÀ´µÄÉùÒô¿ÉÄܺÜÕðº³,Ò²¿ÉÄܳ¹µ×ÁîÈËʧÍû.
2.1.1 The adagio package
´Ë°ü×°°üº¬ mp (ÃüÁîÁÐϵÄMIDIµµ²¥·Å³Ìʽ)ºÍ xmp (XView ½éÃæÏ嵀 MIDI
µµ²¥·Å³Ìʽ), ²»ÒªÓëËùνµÄÄ£×é[module]²¥·Å³Ìʽ»ìÏý xmp). Ä㽫ÐèÒª SlingShot
ÑÓÉìÀ´Ê¹Óà xmp). Ëü°üº¬ÆäËû³ÌʽÀ´²¥·ÅÂý°åÀÖÆ×.
Èç¹ûÄãÓÐ GUS, mp Äܹ»²¥·ÅMODµµ ( ¿´ÕÂ½Ú Modules (section 2.2, page 3) ,
µÃµ½¸ü¶àÓëÄ£×éÓйصÄ×ÊѶ).
ÓÐЩÈÅÈ˵ijô¡õ[bug](µ± 0.5 °æÔÚЩӲÌåÉÏ)ÊÇÉùÒôÖжÏÔÚÖÕ¶Ë. Ò²¾ÍÊÇ,ûÓÐÕÕÔ±¾
MIDI µµ¼Ç¼µÄÖжÏÉùÒô·½Ê½, ¶øÊÇÖжϲ¥·ÅÒô·ûÔÚ×îááÒô·û»¹ÓÐÒ»¶ÎÒô³Ì֮ǰ.
ËüÒѲ»×èÖ¹ÎÒʹÓà mp, Ëü¿ÉÄÜ×èֹijÈËʹÓÃËüÔÚ '¼´Ê±'[real]¹¤×÷.
ËüµÄ°²×°Ò²Ïà¶ÔµØ½ÏÂý.
Õâ°ü×°Öв¢Ã»ÓÐÌáµ½°æȨ(ÖÁÉÙÎÒûÕÒµ½), ËùÒÔÎÒ¼ÙÉèËüÄܹ»×ÔÓɵÄÔÙÉ¢²¼ÓëÐÞ¸Ä.
(½åÓÉÖø×÷Ȩ·¨µÄÑϸñ½âÊÍ, ûÓж«Î÷¿ÉÒÔ¸øÒ»¸öÈËÓÐȨÀûÈ¥×öÕâÑùµÄÊÂÇé,
µ«ÎÒÓеãÒÉ»óÕâ»áÊÇÔ×÷ÕßµÄÓÃÒâÂð.)
ËüÊÇÓÉ Greg Lee ½« CMU MIDI Toolkit ÒÆÖ²µ½ Linux µÄ. (though there was enough
added to make this questionable) (lee@uhunix.uhcc.hawaii.edu).
Ëü¿ÉÒÔÈ¡ì¶ anonymous FTP ÔÚ tsx-11.mit.edu ÉϵÄ
The Linux Sound Playing HOWTO ÖÐÒë°æ 3
/pub/linux/packages/sound/adagio05.tar.gz. ÕâÑùËù°üº¬µÄ¶þÔªµµÊÇÒÔ a.out ¸ñʽ
(Á¬½áµ½ÒÔÇ°µÄ³Ìʽº¯Ê½¿â), ¶øÔÚ¶þÔªÂëµÄµµ xmp É趨ÔÚ X11R6 »·¾³ (XFree86 3.1.1,
libc 4.7.2). mp µÄ¶þÔªÂëµÄµµÔÚ a.out »·¾³¿ÉÒÔ¹¤×÷ºÜºÃ.
Ä㽫ÐèÒª·ÑµãÅ£Á¦À´±àÒëËü. ÊÂʵÉÏ,ÄÇÒ²²»ÐèÒª·ÑÌ«¶àÁ¦ÆøÀ². ÄãËùÒª×÷µÄ¾ÍÊÇÔÚ
Makefile ÄÚµÄ SHROBJ ºÍ XMPOBJ µÄβ¶Ë¼ÓÉÏ -lfl. ÕâÊÇÁ¬½áµ½ flex ³Ìʽº¯Ê½¿â,
Æä²¢²»ÊÇÔ¤ÏȾÍÁ¬½áµÄ.È»ááÕÕ°²×°²½Öè×÷.ÈôÄãÏë±àÒë xmp, ²»ÒªÍüÁËÒªÓа²×° XView ºÍ
SlingShot extensions .
2.1.2 TiMidity
ÓÐЩÈ˽¨ÒéÕâÖÖ ÊµÑéÐ﵀ ³Ìʽ,ÒòΪÓкõÄÒôÖÊ (ÕâÊÇÕæµÄ,ÔÚ Sound Blaster
16ÉÏ,Ëü±ÈÆð mp ºÃ¶àÁË, ¶øÇÒ´ó¸Å²»»áÓë¾ßÓв¨ÐκϳÉÆ÷[wavetable]µÄÒôЧ¿¨ÏñÊÇ GUS
Ïà²îÌ«¶à.) È»¶øËüÃæÁÙ¸ß CPU ¸ºÔØ. Ëü²¥·Å MIDI ÊǽåÓɽ« MIDI ת»»³É WAV,
È»ááÔÙ²¥·Å WAV (ÄãÒ²Äܹ»×ª»» MIDI µµ³É WAV µµ,¶ø²»²¥·ÅËü, Èç¹ûÄãÏëÒªµÄ»°.)
Õâ¾ÍÊÇ CPU Èç´ËÖØÒªµÄÀíÓÉ. ËüÒ²ÓпÉÑ¡ÔñÐ﵀ ncurses, SLang, TclTk or Motif
½éÃæ.
ÄãÐèÒªÓÐ Gravis Ultrasound patch files À´Ê¹ÓÃÕâ¸ö³Ìʽ. ¼ìÊÓ TiMidity °üº¬µÄ
FAQ , »ñÈ¡¸ü¶à×ÊѶ.
×÷ÕßÊÇ Tuukka Toivonen (tt@cgs.fi).
×îÐ嵀 TiMidity °æ±¾¿ÉÈ¡µÃÔÚ TiMidity home page2 .
´ËÊ×Ò³Ò²ÓÐÁ¬½áµ½Ð¡³Ìʽ¿âµÄµØ·½º¬ÓÐ GUS patches.
2.1.3 playmidi
ÕâÊÇÒ»¸ö MIDI ²¥·Å³Ìʽ,¿ÉÓÃÀ´²¥·Å FM, GUS, ¼°Íâ½Ó MIDI. ÓëÆäËü MIDI
²¥·Å³ÌÏà½ÏÏÂ,ËüÓ¦¸ÃÓнϿìµÄ°²×°Ê±¼ä. ËüÒ²Äܹ»²¥·Å Creative Music Files ¸ñʽ,
Microsoft RIFF files¸ñʽ, ÒÔ¼°´ÓÏñ Ultima 7 ÓÎÏ·À´µÄ½Ï´óÖ®µµ°¸.
ËüÓÐ X ½éÃæºÍ SVGA ½éÃæ. ËüÒ²ÓÐÑ¡Ïʱ²¥·Å½åÓÉ×·×Ýÿ¸öͨµÀ [chan
nel]µÄËùÓи½×¢ÒÔ¼°Ä¿Ç°²¥·ÅµÄʱ¿Ì (×Ô¶¯µÄ±»ÄÚº¬ÔÚ xplaymidi ºÍ splaymidi).
ÄãÓ¦¸Ã×öÒÔ϶¯×÷
$ splaymidi foo.mid; stty sane
ÈôÄãҪʹÓà SVGA ½éÃæʱ. ÒòΪËü²»Êʵ±µØÖØÖÃ[reset]ÖÕ¶Ë tty ģʽ. SVGA
½éÃæÔÚ²»¾Ã½«À´¿ÉÄܻᱻȥ³ý.
ËüµÄ×÷ÕßÊÇ Nathan Laredo (laredo@gnu.org »ò laredo@ix.netcom.com).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/playmidi-2.3.tar.gz.
2.2 Modules
Modules (ÔÚµçÄÔÒôÀÖÖÐ)ÊÇÊýλÒôÀÖµµ, ÓÉÒ»×éÑù±¾¼°ÐòÁÐ×ÊѶ×é³É,
____________________
2. <URL:http://www.cgs.fi/~tt/timidity/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 4
¸æÖªºÎʱ²¥·ÅÑù±¾(ÀÖÆ÷)ÔÚÄĸö¹ìµ÷ʲ÷áÒô,¿É×ÔÓÉÑ¡ÔñµØ±íÏÖЧ¹û, ¾ÙÀýÏñÊÇ
Õñ¶¯Òô[vibrato].
Ëü³¬Ô½ MIDI µÄºÃ´¦ÊÇËü¼¸ºõÄÜ°üº¬ÈκÎÉùÒô(°üÀ¨ÈËÀàµÄÓïÒô).
ÁíÒ»ºÃ´¦ÊÇËüÔÚ¸÷ƽ̨ÉÏÌýÆðÀ´¶¼Ò»Ñù,ÒòΪȡÑùÊÇÔÚÄ£×éÖÐ. ȱµãÊǸú MIDI
±ÈÆðÀ´µµ°¸½Ï´ó.ÁíһȱµãÊÇËüûÓÐÕæÕýµÄ±ê×¼¸ñʽ (ΨһµÄÕæÕý±ê×¼ÊÇ Pro
Tracker,¶øÓֺܶàÄ£×é²¢²»ÓëÆäÏàÈÝ). ËüÆðÔ´ÔÚ Amiga.
×îÆÕͨµÄ¸ñʽÊÇÓи±µµÃûΪ .mod. »¹ÓкܶàÆäËüÖÖ¸±µµÃû, ÓëËüÃÇËùÊôµÄ¸ñʽÓйØ.
2.2.1 tracker
ÕâÊÇ¿ÉЯ´ø³Ìʽ(ËüÒѾ±»ÒÆÖ²[port]µ½¸÷ÖÖƽ̨) ²¥·ÅÒô¹ì[Soundtracker]ºÍÇ°¹ì[Pro
tracker]ÒôÀÖÄ£×é. ËüʹÓà 16 bit µÄÁ¢ÌåÊä³ö[stereo],¶øÎÒÈÏΪÒôÖʺܰô.
ÈôÄãÐèÒªÒ»¸ö¼òµ¥·½Ê½¼õÉÙ CPU ¸ºµ£,¿ÉʹÓà -mono Ñ¡Ïî.
ÕâÊÇ¿É×÷ΪÀñÎïµÄ[giftware]³Ìʽ(ÒýÓÃ×ÔÔ×÷Õß). ×÷ÕßΪ Marc Espie
(Marc.Espie@ens.fr).
º¬ Makefile µµµÄ°æ±¾ÒѾÓÃÁ¦×ª[tweaked]µ½ Linux, Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sun
site.unc.edu É쵀 /pub/Linux/apps/sound/players/tracker-4.3-linux.tar.gz.
2.2.2 gmod
ÕâÊÇ Gravis Ultrasound ¿¨µÄÒôÀÖÄ£×é²¥·Å³Ìʽ. 4/6/8 channel MOD, 8 channel 669,
MultiTracker ScreamTracker III (S3M) ¶¼ÊDZ»Ö§Ô®µÄ¸ñʽ.
ËüÒªÇó 3.0 °æÒÔááµÄÉùÒôÇý¶¯³Ìʽ. ¶øÇÒµ±È»ÊÇ GUS.
Äã¿ÉÒÔÐèÒªÐ޸ĺËÐÄÀ´Ê¹ÒôÁ¿¿ØÖƳÉΪÄãËùÒªµÄ.
ÕâÊÇ X ½éÃæ.ËüʹÓà QT toolkit (ÐèÒª 0.99 °æÒÔáá). ²éѯһÏ QT toolkit
homepage3 È¡µÃ¸ü¶àÓÐ¹Ø QT µÄ×ÊѶ.
ÕâÊÇ¿ÉÒÔ×ÔÓɵÄÉ¢²¼. ËüÊÇÓÉ Hannu Savolainen Ëù×÷, ºÍĿǰά»¤ÊÇÓÉ Andrew J.
Robinson (robinson@cnj.digex.net).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/gmod-3.1.tar.gz.
2.2.3 MikMod
Õâ¸ö¿ÉЯ´øÄ£×é²¥·Å³Ìʽ¿ÉÒÔ²¥·Å XM, ULT, STM, S3M, MTM, MOD ºÍUNI ¸ñʽ.( UNI
¸ñʽÊDZ» MikMod µÄÄÚ²¿¸ñʽ.) ËüÓÐÖ§Ô® ¼âÐ¥Éù[zipped]µÄÄ£×éµµ. ËüʹÓà 16 bit
Á¢ÌåÉùÒôÊä³ö. ÈôÄãÒª¼õµÍ CPU ¸ºµ£,¿É¼ÓÉÏ -m Ñ¡Ïî(µ¥¶ËÊä³ö).
Unix °æ±¾Ê¹Óà ncurses »ò Tcl/Tk ×÷ΪÆä½éÃæ.
Ëü¿ÉÄÜʹÓóɳÌʽº¯Ê½¿â[library],²»½öÊǶÀÁ¢³Ìʽ¶øÒÑ.
ËüµÄÔʼ×÷ÕßÊÇ Jean-Paul Mikkers (mikmak@via.nl). ËüÄ¿Ç°ÊÇÓÉ Jake Stine (dra
coirs@epix.net)À´Î¬»¤. ÕâÊǹ²ÏíÈíÌå, Èç¹ûÄãҪʹÓÃÔÚÉÌÒµÉÏ,ÄÇ÷áÄã±ØÐë×¢²á.
ÄãÒ²±ØÐëÈ¡µÃÔÊÐí²Å¿ÉÔÚÉÌÒµÉϵÄÔÙÉ¢²¼ (·ÇÉÌÒµÉϵÄÔÙÉ¢²¼²»ÐèҪȡµÃÔÊÐí).
____________________
3. <URL:http://www.troll.no/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 5
Õâ¿ÉÒÔÈ¡µÃÔÚ MikMod home page4 .
2.2.4 xmp
ÕâÊǸö Ä£×é²¥·Å³Ìʽ (²»ÒªÓë Adagio's xmp Ä¿»ìÏý), Ëü¿ÉÒÔ²¥·Å MOD, S3M, STM,
669, ºÍ XM Ä£×é (ÆäËû¸ñʽҲ±»Ö§Ô®,µ«ÈÔÔÚʵÑé½×¶Î»òδÍê³É)
ÔÚ¾ßÓв¨ÐκϳÉÆ÷[wavetable synthesis]µÄÒôЧ¿¨ (GUS »ò SoundBloaster 32AWE)ÉÏ
»òÔÚ¾ßÓÐ SoftOSS (Çý¶¯³Ìʽ¿É×öÈíÌå»ìÒô)µÄϵͳÉÏ. ²»¾ÃµÄ½«À´,Ò»°ãµÄ DSP
Êä³öÒ²½«»á±»Ö§Ô®.
xmp µÄ X Ç°¶Ë³ÌʽҲ¿ÉÒÔÈ¡µÃÁË.
×÷ÕßÊÇ Claudio Matsuoka (claudio@brasil.enemy.org) ºÍ H. Carraro Jr.
Õâ¿ÉÈ¡µÃÔÚ xmp home page5 .
2.2.5 s3mod
Õâ³Ìʽ²¥·Å 4/6/8 ¹ìµÄÄ£×éºÍ Scream Tracker 3 Ä£×é. Ëü½åÓÉÄÚ¶¨µÄ 22000 Hz
È¡ÑùƵÂʵÄʹÓà 8 bit µ¥¶ËÊä³ö[mono]. Äã¿ÉÒÔʹÓà -s Ñ¡ÏîÀ´Çý¶¯Á¢ÌåÒô[stereo],
-b À´Çý¶¯ 16 bit Êä³ö, ºÍ -f À´É趨ȡƵÂÊ.È»¶ø,ÉùÒôÊä³ö±È tracker Ôã
(ÓеãÔÓѶ), ËùÒÔÎÒ½¨ÒéʹÓà tracker È¡´ú s3mod À´²¥·ÅÔʼ MOD µµ
(³ý·ÇÄãÓв»¹»Á¦µÄ»úÆ÷).ËüÏà½Ïì¶ tracker ÓÐÔ¶Ð¡ì¶ CPU ¸ºÔØ.
¸Ã°æȨΪDaniel Marks ºÍ David Jeske (jeske@uiuc.edu) ËùÓÐ, µ«ÄãÄܶÔËü×öÈκδ¦Àí
(³ýÁËÄã²»ÄÜÐû³ÆÄãËùдÍâ).
Ëü¿ÉÈ¡ì¶anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/s3mod-v1.09.tar.gz.
2.2.6 mod
Õâ¸ö beta ³Ìʽ²¥·Å MODs (15/31-ÀÖÆ÷,µ½ 32 ÖÖÉùÒô), MTMs, ULTs ºÍ S3Ms ÔÚ Gravis
Ultrasound ¿¨ÉÏ.ËüÒ²ÄÜÓÃÀ´°ü×°Ä£×é, ÈôÄãÓа²×° gzip, lharc, unzip, ºÍ unarj .
Ëü²»Äܲ¥·Å Powerpacked Ä£×é»òijЩ Amiga ×÷ÇúÕß°ü×°µÄÄ£×é ["PACK" signature].
ÕâÒªÇóÖÁÉÙ 3.0 °æµÄÉùÒôÇý¶¯³Ìʽ. ËüÔÚ 2.90-2 °æÒÔÇ°µÄÉùÒôÇý¶¯³Ìʽ ²»»á
Õý³£¹¤×÷. ÎÄ×Ö½éÃæÒªÇó ncurses. »¹Óаüº¬Ê¹Óà Tcl/Tk µÄ X ½éÃæ.
×÷ÕßÊÇ Mikael Nordqvist (mech@df.lth.se or d91mn@efd.lth.se).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/mod-v0.81.tgz.
2.2.7 nspmod
ÕâÊÇ alpha Ä£×é²¥·Å³Ìʽ,Ëü¿ÉÒÔ²¥·Å MTM, S3M, ºÍ MOD Ä£×é.
ËüÊÇÆóͼ³ÉΪģ×é²¥·Å³ÌʽÔÚÒôЧ¿¨ÉÏûÓÐ DSP ÏÂ. (²»ÒªÓë Creative Labs
¹«Ë¾Ðû³ÆµÄ DSP Ïà»ìÏý.) ËüÉÔ΢ռÓà CPU ¸ºµ£, ºÍ tracker ±È½ÏÆðÀ´ÏàËÆ.
____________________
4. <URL:http://www.aics.net/~amstutz/mikmod.html>
5. <URL:http://www.merdre.net/~claudio/xmp/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 6
ËüÓÐÏîÌØÉ«ÊÇ¿ÉÈÃÄã×Ô¼ºÏëÒªµÄÄ£×éÖظ²[modules loop]. Öظ²´ÎÊýÄܹ»½åÓÉʹÓà -l
Ñ¡ÏîÀ´ÏÞÖÆ. ËüֻʹÓà 8 bit ÉùÒôÊä³ö(µ±ÔÚ 0.1 °æʱ).
×÷ÕßÊÇ This was written by Toru Egashira (toru@jms.jeton.or.jp).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/nspmod-0.1.tar.gz.
2.2.8 yampmod
Õâ¸ö alpha ³ÌʽÊDZ»Éè¼ÆʹÓÃ×îС CPU ×ÊÔ´,À´²¥·Å 4-channel Ä£×é. Ëü ²»ÊÇ
±»Éè¼Æ²úÉú¸ßÒôÖÊ. ËùÒÔ²úÉúµÄΨһÉùÒôÊä³öÊÇ 22 kHz µ¥¶ËÊä³ö[mono].
ÔÙÕß,ÕâÊä³ö²¢Î´´ïËüÓ¦ÓеÄÇåäÀ³Ì¶È,±íÏÖ³öËüÊÇ alpha °æ.
×÷ÕßÊÇ David Groves (djg@djghome.demon.co.uk).
Õâ¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/yampmod-0.1.tar.gz.
2.3 MPEG ÒôÁ÷
MPEG ÊDZê×¼½â¶ÁÔÚÊýλ´¢´æÉ豸ÉÏÖ®Ó°Ïñ¼°Ïà¹ØÉùÒô±àÂë. MPEG
ͨ³£¾Í»áÁªÏëµ½Ó°Ïñ,¶ø¸Ã±ê×¼µÄÉùÒô²¿·Ö¿É±»·Ö¿ªÀ´Ê¹ÓÃ.
¸Ã±ê×¼µÄÉùÒô²¿·Ö¶¨Òå³ÉÈýÖÖ²ã´Î, layer I, II, Óë III.
Äܹ»½âÂë½Ï¸ß²ã´ÎµÄ²¥·Å³ÌʽҲÄܽâÂë½ÏµÍ²ã´Î. (¾ÙÀý,layer III µÄ²¥·Å³ÌʽÄܹ»²¥·Å
layer IIµÄµµ. ¶ø layer I MPEG ÉùÒôµµÍ¨³£Óи±µµÃû .mpg
(ËùÒÔÈôÓÐÒ»¸öµµÊÇÕâÑùµÄ¸±µµÃû,Æä²»Äܱ» MPEG Ó°Ïñ²¥·Å³ÌʽÀ´²¥Ó³,
Ëü´ó¸ÅÊÇÒôÁ÷[audio stream].), layer II ͨ³£Óи±µµÃû .mp2, ¶ø layer III
ͨ³£Óи±µµÃû .mp3. ÕâÖÖÉùÒôѹËõ·Ç³£ºÃ. Ò»¸ö 2 megabytes µÄ layer II MPEG
ÉùÒôµµ´ó¸ÅÄܱÁ½ô×ÔÒ»¸ö 25 megabytes µÄ×ÔÈ» PCM È¡Ñùµµ, ÇÒ±£ÓÐÒ»ÑùµÄÆ·ÖÊ.
2.3.1 mpg123
Õâ¸ö beta ³ÌʽÊDz¥·Å MPEG ÒôÁ÷ºÜÓÐЧÂÊ, ËüÖ§Ô® layers I, II, and
III.ËüÊǴӺܶàÔʼ³ÌʽËù½¨Á¢µÄ³ÌʽÂë. Ëü¿ÉÒÔÖ±½Ó²¥·Å¼°Ê±µÄÓÉ HTTP ¶Áµ½µÄÒôÁ÷.
(»»¾ä»°Ëµ,ijÈË¿ÉÒÔÖ±½Ó͸¹ýÈ«Çò×ÊѶÍøÀ´²¥·Å MPEG ÒôÁ÷.)
Ö÷Òª×÷ÕßÊÇ Michael Hipp (Michael.Hipp@student.uni-tuebingen.de).
ËüµÄδÐ޸ĵÄÐÎʽ¿ÉÒÔÃâ·ÑµÄʹÓÃ,É¢²¼ì¶·ÇÉÌÒµÓÃÓà. °üº¬Ãâ·ÑÈíÌåµÄÊÕ¼ (Ïñ FTP
ËÅ·þÆ÷µÄ CD-ROM µµ°¸×ÊÁÏ¿½±´[images] Ã÷È·µØµÄÔÊÐí.
ËüµÄ×îа汾¿ÉÈ¡ì¶ Oliver Fromme's mpg123 page6 .
2.3.2 maplay 1.2
´Ë MPEG ÉùÒôÁ÷²¥·Å³Ìʽֻ֧Ԯ layer I ºÍ layer II ÒôÁ÷, ¶øȱÉÙÖ§Ô® layer III
ÒôÁ÷. ÔÚ Linux,ËüÖ»Ö§Ô® 16 bit µÄÒôЧ.
ËüºÜÇ¿ÁÒÒªºÃµÄ CPU, Ëü»¨ÁË 55% µÄ CPU time ÔÚ 60MHz Pentium. ÔÚ 66MHz
486ÉÏ,ËüµÄÊä³ö»áÁîÈËÎÞ·¨ÈÌÊܵÄ,ÒòΪ CPU ÎÞ·¨¸ÏÉÏÉùÒô.
ÈôÕâ·¢ÉúÔÚÄãÄÇ,ÄãÉè·¨²¥·ÅÒÔÖ»ÓÃÒôÁ÷µÄµ¥±ß²¥·Å (ʹÓà -l »ò -r
____________________
6. <URL:http://www.heim3.tu-clausthal.de/~olli/mpg123/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 7
Ñ¡Ïî)È¡´úÄÚ¶¨µÄÁ¢ÌåÒôÖÊ.
ΪÁËҪ˳Àû±àÒë,ÔÚÆäµµ°¸ÖÐÓÐЩ¸Ä±äÊÇÐèÒªµÄ. »»¾ä»°Ëµ,ÄãÐèÒª¼ÓÒÔϼ¸Ðе½ config
uration.sh ËùÆðʼµÄµµ°¸ÖÐ.
#! /bin/sh
×÷ÕßÊÇ Tobias Bading (bading@cs.tu-berlin.de). maplay 1.2 ¿ÉÈ¡ì¶ anonymous FTP
ÔÚ ftp.cs.tu-berlin.de É쵀 /pub/multimedia/maplay1.2/maplay1_2.tar.
2.3.3 maplay 1.3b
ÕâÊǷǹٷ½°æ°æ±¾(»»¾ä»°Ëµ,²»ÊÇÔ×÷ÕßËù×÷µÄ maplay 1.2, ËùÒÔËüÄÜÅÜ±È½ÏµÍ CPU
¸ºÔØ. ËüÖ÷Òª½åÓÉʹÓÃÊÂʵÉϹ¤×÷ÔÚ SPARC ÒÔÍâµÄÆäËûƽ̨É쵀 u-law output À´´ï³É.
×¢ÒâµÄÊÇËüÄÚ¶¨Ê¹Óà u-law output, ËùÒÔÉùÒôÆ·ÖÊÊDZȽϲîµÄ.
´Ë¸ÄÐ޸İæÊÇ Orlando Andico Ëù×÷ (orly@gibson.eee.upd.edu.ph).
Õâ¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/maplay-1.3b-Linux.tar.gz.
2.3.4 maplay3
Õâ²¥·Å³ÌʽÊÇ´Ó maplay 1.2 ¸Ä±àÀ´µÄ. Ëü¼ÓÈëÖ§Ô® MPEG Layer 3
ÉùÒôÁ÷.Ä¿Ç°ËüËƺõÓÐЩ³ô¡õÔÚ²¥·Åʱ (Äã¿ÉÒÔÌýµ½Ò»Ð©´Ì¶úµÄÔÓѶ).
Äã¿ÉÒÔµ÷Õû[twid.dle]Ñ¡ÏîÀ´½â¾öÕâ¸öÎÊÌâ.
´ËÐ޸İæÊÇ Timo Jantunen Ëù×÷. (timo.jantunen@hut.fi »ò jeti@cc.hut.fi).
ËüÊÇ¿ÉÒÔÃâ·ÑµÄʹÓÃ,µ«ÓÃÀ´×¬Ç®Ôò²»±»ÔÊÐí.
È»¶ø,ÎÒÍêÈ«²»È·¶¨Õâ°æȨµÄÓÐЧÐÔ,ÒòΪÔÓÐµÄ maplay ÊÇÔÚ GNU General Public
License ÏÂ,¶ø GNU General Public License ÊDz»Ðí¸Ä±à°æ±¾ÄÜÓв»Í¬µÄ°æȨÐû¸æ.
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/maplay3.tar.gz.
2.3.5 splay
Õâ beta ²¥·Å³ÌʽÊÇÁíÒ»¸ö´Ó maplay 1.2 ¸Ä±àÀ´µÄ (ÊÂʵÉÏ,ËüÊÇ maplay 1.2+
Ëù¸Ä±àµÄ. ¶ø maplay 1.2+ ÊÇ´Ó maplay ¸Ä±àµ½ MS Windows ÉÏΨһµÄ°æ±¾.)
Ëü¼ÓÈëÖ§Ô® MPEG Layer 3 ÒôÁ÷. ËüÒ²Äܹ»²¥·Å WAV µµ. Ëü»¹Äܹ»¿ç¹ý HTTP
Á¬Ïß½ÓÊÕÀ´²¥·ÅÒôÁ÷.
splay µÄÁíÒ»ÏîÌØÉ«ÊÇËüÄܱ»Ê¹ÓóÉÒ»³Ìʽº¯Êý¿â (ÔÚLGPLÏÂ),
ËùÒÔËü¿ÉÒÔÈÃÆäËû³ÌʽʹÓÃ. ËüÒ²Éè·¨¸ÄÉƱíÏÖ,½åÓÉʹÓÃÐ÷[threading](Èç¹ûÄãÐèÒª
pthread À´Ê¹ÓÃÕâ¸öÌØÉ«) ºÍһЩе÷ÕûºÏ[inline assembly].
splay ʹÓÃÃüÁîÁнéÃæºÍÑ¡ÔñÐ﵀ X ½éÃæ (ËüʹÓà QT).
ÈôÔÚ±àÒëáá,ËüûÓÐÕý³£¹¤×÷ (e.g. Ëü·¢Éú segmentation faults),
ÊÔÖø²»ÓÃÐ÷À´±àÒëËü.
×÷ÕßÊÇ Jung Woo-jae (jwj95@eve.kaist.ac.kr).
The Linux Sound Playing HOWTO ÖÐÒë°æ 8
Ëü¿ÉÈ¡µÃÔÚ splay's home page7 .
2.3.6 Sajber Jukebox
Õâ¸ö³ÌʽÊÇ MPEG ͼÐνéÃæµÄÉùÒô²¥·Å³Ìʽ.ËüÊǽ¨ÉèÔÚ splay ÉÏ, Ëü°üº¬Ö§Ô® MPEG
audio layers µ½ III. ËüÒ²Äܲ¥·Å¼°Ê±´Ó HTTP É϶ÁÈ¡µÄ MPEG ÉùÒôÁ÷.ËüÒ²ºÜÈÝÒ×É趨.
ËüʹÓà QT toolkit (ÖÁÉÙ 1.2°æÒÔÉÏÊÇÐèÒªµÄ). ËüҲʹÓÃLinuxThreads ³Ìʽº¯Êý¿â
(´Ë¶þÔªÂëµµ[binary]Ö»Õý³£¹¤×÷ÔÚ 0.5°æ).
×÷ÕßÊÇ Joel Lindholm (wizball@kewl.campus.luth.se).
×îаæ¿ÉÈ¡Ö®ì¶ anonymous FTP ÔÚ kewl.campus.luth.se ÉÏÖ® /pub/jukebox.
2.3.7 amp
´Ë beta MPEG ÉùÒô²¥·Å³Ìʽֻ֧Ԯ MPEG Layer 3 ÒôÁ÷.
ËüÄܹ»Ö±½Ó²¥·ÅÔÚÒôЧ¿¨ÉÏ,¶øÇÒËüÄÜÊä³öµ½×ÔÈ»µÄ PCM »ò WAV µµ. ÕâÒ²Õ¼Ï൱´óµÄ
CPU ¸ºÔØ (´óÔ¼ÔÚ 133MHz Pentium ÉÏÒª 60% ).
×÷ÕßÊÇ Tomislav Uzelac (tuzelac@rasip.fer.hr). Ëü¿ÉÒÔÃâ·ÑµÄʹÓÃ,É¢²¼,
Ö»ÒªËü²»ÒªÔÚδ¾ÔÊÐíÏÂÉÌÒµÉÏ··ÊÛ(ËäÈ»Èç´Ë, ½«Æä°üº¬ÔÚº¬ÓÐÃâ·ÑÈíµÄ CD-ROM
ÉÏ,Ã÷È·µÄ±»ÔÊÐíµÄ).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ ftp.rasip.fer.hr É쵀 /pub/mpeg/amp-0.7.3.tgz.
2.3.8 XAudio
Õâ¸ö alpha ³Ìʽº¯Ê½¿âÊDZ»Ð´³É¿ìËÙÍê³É MPEG ÒôÁ÷½âÂë³Ìʽº¯Ê½¿âµ½¸÷ÖÖ GUI
Ç°¶Ë³Ìʽ. ËüÖ§Ô® MPEG audio layers I, II, ºÍ III.ËüÄܹ»Ëæ»ú´æȡλԪÁ÷[bit
streams]. ÃüÁîÁнéÃæ±»ºÀ¨½øÀ´. ¶ø Motif (Lesstif) Ç°¶Ë³ÌʽҲ±»ºÀ¨ÔÚ Linux
µÄ°æ±¾ÖÐ.
ÕâÊÇÓÉ Gilles Boccon-Gibod, Alain Jobart ºÍÆäËûÈËËù×÷µÄ.
Á¬½Óµ½´Ëº¯Ê½¿âµÄÇ°¶Ë³ÌʽҲ¿ÉÃâ·ÑµÄÏÂÔØ. ¶øº¯Ê½¿â±¾Éí±ØÐëÒª±»ÊÚȨʹÓÃ
(ÔʼÂëºÍ¶þÔªÂë³ÌʽµÄÊÚȨÊÇ¿ÉÒÔÈ¡µÃµÄ).
Á¬½Óµ½´Ëº¯Ê½¿âµÄÇ°¶Ë³Ìʽ¿ÉÒÔÈ¡µÃÔÚ XAudio home page8 .
2.3.9 Layer 3 Shareware Encoder/Decoder
ÊÂʵÉÏ,ÕâÊÇÖÖת»»Æ÷,ËüÄÜת»» MPEG Layer 3 ÒôÁ÷µ½ WAV, AIFF, SND, AIFC,
»òÊÇ×ÔÈ»µÄ PCM È¡Ñùµµ. Linux°æ±¾²¢Ã»ÓÐÖ±½ÓÊä³öÉùÒôµ½ÒôЧ¿¨ÉÏ.
ijÈ˱ØÐëÏȽ«Æäת³ÉÆäËû¸ñʽ.
È»¶ø,µ±ÄãÉ跨ȥ²¥·ÅʹÓà sox µÄת»»µµ,Äã´ó¸Å½«»áÓÐÔÓѶ, ÒòΪÔÚ
PCMÈ¡ÑùÉÏ,×ÖµÄ˳Ðò²¢²»ÕýÈ· (ÖÁÉÙÔÚ Intel ƽ̨ÉÏÊÇÕâÑù). Äã±ØÐë¸øÓè sox
Õâ¸öÑ¡Ïî -x À´½â¾öÕâ¸öÎÊÌâ.
µ«ÓÐЩ²¥·Å³ÌʽÎÞ·¨±»¸æÖª×Ö˳ÐòÊÇ´íµÄ,ËùÒÔÄã¿ÉÄܲ»±ØÈ¥µ£ÐÄÕâ¸öÎÊÌâ.
____________________
7. <URL:http://adam.kaist.ac.kr/~jwj95/>
8. <URL:http://www.mpeg.org/xaudio/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 9
ÈôÄãÓбȽϿìµÄµçÄÔ (´ó¸ÅÖÁÉÙÒª 100Mhz Pentium), ÄÇ÷áÄãÄÜÊÔÊÔÖ±½Ó²¥·Å MPEG Layer
3 ÒôÁ÷, ¶ø²»ÐèÒªÏÈת³ÉÆäËû¸ñʽÉùÒôµµ,ÏñÒÔÏÂÀý×Ó(ÕâÀý×Ó¼ÙÉèÄãÕýʹÓà sox ÇÒ²¥·Å
44.1kHz Á¢ÌåÈ¡Ñù.)
$ l3dec foo.mp3 -sto | play -t raw -x -u -w -c 2 -r 44100 -
-r Ö®ááµÄÊý×ÖÊÇÒôÁ÷µÄÈ¡ÑùÂÊ,¶øÔÚ -c Ö®ááÊý×ÖÔòÊÇÓëËüÊÇ mono »ò stereo (ÉõÖÁ»ò
quad)ÓйØ. ÈôÕâ¿´ÆðÀ´Ì«¸´ÔÓ,ÄãÄܹ»Ê¹ÓÃÏñ shell script »ò alias µÄ¶«Î÷.
ÕâÊǹ²ÏíÈíÌå,°æȨÊôì¶ Fraunhofer-IIS. ÔÚ x86 ϵͳµÄLinuxÉÏ֮չʾ°æ¿ÉÈ¡Ö®ì¶
anonymous FTP ÔÚ ftp.fhg.de É쵀 /pub/layer3. չʾ°æÖ»ÄÜת»» layer III ÒôÁ÷.
2.4 WAV
´Ó sox ÊÖ²áÒ³ÉÏÒýÊö:
Õâ³öÏַdz£ÏàËÆ IFFµµ,µ«²»ÍêÈ«Ò»Ñù. ËüÃÇÊÇÔÉúµÄ Windows 3.1
ÉÏÒôÀÖµµ. Ã÷ÏÔµØ, Windows 3.1 ÊÇÈç´ËÁîÈËÄÑÒÔÏàÐÅËüµÄÖØÒªÐÔ,
¶Ô춵çÄÔ¹¤ÒµÉÏ,ËüÃ÷È·µÄ±ØÐëÒªÓÐËü×Ô¼ºÓµÓеÄÉùÒô¸ñʽ.
Ëüͨ³£Óи±µµÃû .wav.
Ò²Çë¿´ÕÂ½Ú sox (section 2.5.1, page 9) ºÍ bplay (section 2.5.2, page 10)
ÒÔÈ¡µÃ¸ü¶à³ýÁËÕâÑùËùÁÐÖ®ÍâµÄ WAV ²¥·Å³Ìʽ.
2.4.1 wavplay
Õâ³Ìʽ֧Ԯ²¥·ÅºÍ¼ÖÆ WAV ¸ñʽ. ËüʹÓÃËø¶¨[lock
ing]ËùÒÔÒ»´ÎÖÐÖ»ÄÜÓÐÒ»ÉùÒô±»²¥·Å.
ËüµÄËø¶¨ÄÜÁ¦Ò²Äܹ»Ê¹ÓÃÔÚ·ÖÀëì¶ÉùÒôÉùÒôµÄ²¥·ÅÄÜÁ¦.
³ýÁË command-line ½éÃæ,ËüÒ²ÓÐ Motif ½éÃæ,Æä¿ÉÓë Lesstif À´ÅäºÏʹÓÃ.
Ôʼ×÷ÕßÊÇ Andre Fuechsel (af1@irz.inf.tu-dresden.de), µ«ÔÙ±»·¢Õ¹ÖÁ³ÉÐεÄ×÷Õß
Warren W. Gay (bx249@freenet.toronto.on.ca or wwg@ica.net).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu µÄ /pub/Linux/apps/sound/players/wav
play-1.0.tar.gz.
2.5 ÆäËü¶«Î÷
Õâ½ÚÁгö²¥·ÅÉùÒô¸ñʽµÄ¶«Î÷,Æä²»ÖµµÃ¸÷×Ô¶ÀÁ¢³ÉÒ»½Ú
(»»¾ä»°Ëµ,Ψһ²¥·Å³Ìʽ¿ÉÈ¡µÃµÄ¸ñʽ), »òÊÇÒ»¸ö²¥·Å³Ìʽ¾ÍÄܲ¥·Å±È½Ï¶àµÄ¸ñʽ.
2.5.1 sox
Õâ³ÌʽÊÂʵÉÏÊǸöת»»Æ÷,Ò²¾ÍÊÇËüת»»Ò»ÖÖÉùÒô¸ñʽµ½ÁíÒ»ÖÖ. È»¶øÓÐЩ°æ±¾µÄ sox,
µ±²ÉÓà play, À´²¥·ÅÉùÒô ( ÔÚ Sound HOWTO ÖÐµÄ play Ó¦ÓóÌʽ´ó¸Å»á²ÎÕÕµ½Õâ).
ËüÖ§Ô®×ÔÈ»[raw]µÄ (ûÓбêÍ·µÄ)¶þÔªÂð¼°ÎÄ×ÖµÄ×ÊÁÏ, IRCAM Sound Files, Sound
Blaster .voc, SPARC .au (w/header), Mac HCOM, PC/DOS .sou, Sndtool, ºÍ Sounder,
The Linux Sound Playing HOWTO ÖÐÒë°æ 10
NeXT .snd, Windows 3.1 RIFF/WAV, Turtle Beach .smp, CD-R, ÒÔ¼° Apple/SGI AIFF
ºÍ 8SVX ¸ñʽ.
ÔÚ1.3.6x kernelsµÄijЩµØ·½, Äã¿ÉÄܱØÐë×öһЩ¸Ä±äÔÚij¸öµµÖÐ,
ʹµÃËüÄÜÖ±½Ó²¥·ÅÉùÒô.»»¾ä»°Ëµ,Äã±ØÐë¸Ä±ä sbdsp.c µÄ 179 ÐÐ,´Ó
if (abuf_size < 4096 || abuf_size > 65536) {
±äµ½
if (abuf_size < 1 || abuf_size > 65536) {
µ«È»ááÔÙ×öÒ»´Î.Äã¿ÉÒÔ²»±ØÕâÑù×ö.ÕâÑù×ö½«²»»á¶ÏµôÈκζ«Î÷.
Öø×÷Óë°æȨÊôºÜ¶àÈË, ¶øÇÒ¿ÉÓÃÔÚ¸÷ÖÖÓÃ;.
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/con
vert/Lsox-linux.tar.gz.
½Ï½üµÄ°æ±¾ÊÇÓÉ Chris Bagwell Ëù×÷ (tt/cbagwell@sprynet.com/) (½¨Á¢ÔÚÔʼ sox
µÄ×îРgamma °æ±¾, ¶øÇÒ°üº¬ÒÔÉÏÐÞÕý) ¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu
É쵀 /pub/Linux/apps/sound/convert/sox-11gamma-cb3.tar.gz.
2.5.2 bplay
ÕâÊÇ beta ³Ìʽ¿ÉÒÔ²¥·Å×ÔÈ»µÄ[raw]ÉùÒô, WAV, and VOC µµ.
ËüÒ²¿ÉÒÔ¼ÖÆÕâЩµµ.ËüʹÓø÷ÖÖ¼¼ÇÉÒÔÈ¡µÃ¾¡¿ÉÄܵÄ×î¸ßËÙ,
ʹµÃ¼ÈʹÔÚÂý»úÆ÷ÉÏÄÜÈÃÎáÈËÉпɽÓÊܵÄÖ´ÐÐ. ÆäÖÐÒ»Ïî¼¼ÇÉÊÇÒªÇó°²×°µÄ³ÌʽÊÇsetuid
root. Æ«Ö´¿ñµÄÏ£ÍûʹÓÃÕâ³Ìʽ¿ÉÒÔÏëȥʹÓà Ian Jackson (ijack
son@gnu.ai.mit.edu)Ëù×öµÄ Debian package , Æä¹Ø±ÕÐèÒªÉè setuid bit µÄÕâÖÖÌØÉ«.
×÷ÕßΪ David Monro (davidm@gh.cs.usyd.edu.au).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/bplay-0.96.tar.gz.
2.5.3 SIDPLAY
Õâ³ÌʽģÄâ Commodore 64 µÄÉùÒô½éÃæÉ豸¾§Æ¬ [Sound Interface Device chip] (MOS
6581,Ò»°ã½ÐËü SID) ºÍ ΢´¦ÀíÆ÷µ¥Ôª (MOS 6510). ËùÒÔËü¿ÉÒÔÔØÈëÓëÖ´ÐÐ C64
»úеÂëµÄ³Ìʽ,Ëü²úÉúÒôÀÖ»òÉùÒô.
Ò»°ã¶øÑÔ,ÕâЩÊǶÀÁ¢ÂëºÍ×ÊÁÏƬ¶Ï,ËüÒѾÊÇ´ÓÓÎÏ·ºÍÐû´«³Ìʽץȡ[ripped]
ÏÂÀ´µÄ,ºÍÒѾ±»Ö±½Ó´Ó C64 ת¹ýÀ´µÄ.
ËüÄÚ¶¨Ê¹ÓÃÃüÁîÁнéÃæ. Ò²ÓÐ Tk ºÍ QT ½éÃæ¿É·Ö±ðÈ¡µÃÔÚÖ÷ÒªµÄ°ü×°[package]ÄÚ.
ËüÊÇÓÉ Michael Schwendt (sidplay@geocities.com) Ëùά»¤.
Ëü¿ÉÒÔÈ¡µÃÔÚ SIDPLAY's home page9 .
____________________
9. <URL:http://www.geocities.com/SiliconValley/Lakes/5147/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 11
2.5.4 RealAudio Player
Õâ³ÌʽÈÃÄãÌýµ½Ò»ÖÖרÓиñʽµÄÉùÒô,ÆäÄܹ»¼´Ê±¿ç¹ýÍø¼ÊÍø·,
¶ø²»ÐèÒªÏÈÏ´«ÕûÊ×ÉùÒôµµ.ËüÄܹ»µ¥¶ÀʹÓÃ,
µ«ËüÊÂʵÉÏÊÇÏëÒª´îÅää¯ÀÀÆ÷(×îÇå³þÖ§Ô®µÄÊÇ Mosaic ºÍ Netscape)ʹÓÃ. ÔÚûÓÐ X
ÏÂ,Ëü²»ÄÜʹÓÃ(Äã²»ÄÜÓÃËüÀ´´îÅäÎÄ×Ö²Ù×÷ģʽÏ嵀 Lynx ʹÓÃ).
Õâ³ÌʽÊÇÓÉ Progressive Networks, Inc. Ëù×÷. Ëü²»¿ÉÒÔÔÙÉ¢²¼,ÐÞ¸Ä...µÈ.
¿´Ò»ÏÂÆä°æȨ,¾Í»áÕýÈ·Ï꾡֪µÀÄãÄÜ×öʲ÷á. Ëü¿ÉÒÔÃâ·Ñ±»È¡µÃÔÚ RealAudio home
page10 .
2.5.5 cat
ijÈËÒ²Ðí»áÏë˵ cat ,ÓеãÀÄÓõÄÁ¬½á¹¤¾ß,ÊÇÔõ÷á´¦Àí²¥·ÅÉùÒô.
ÎÒ½«Í¸Í¨Ò»¸öÀý×Ó,À´Õ¹Ê¾ËüµÄÓÃ;.
$ cat sample.voc > /dev/dsp
$ cat sample.wav > /dev/dsp
$ cat sample.au > /dev/audio
´¦ÀíÒ»¸ö .au µµµÄ cat µ½ /dev/audio
ͨ³£½«»áÕý³£¹¤×÷,¶øÇÒÈô¹»ÐÒÔ˵Äʹһ¸öµµ(ÔÚÄãµÄƽ̨ÉÏ)
ÓÐÕýÈ·µÄλԪ×é˳Ðò...µÈ,ʹÓà PCM È¡Ñù(ÏñÊÇ .wav or .voc) µ½ /dev/dsp Ö®ÉùÒôµµµÄ
cat ÉõÖÁ¿ÉÄÜÌýÆðÀ´ÕýÈ·.
ÄDz»ÊÇ cat µÄÍêȫûʲÓõÄÓÃ;.Ëü¿ÉÄÜÊÇÓÐÓõÄ,¾ÙÀýÀ´Ëµ,
Èç¹ûÓÐÒ»¸öÉùÒôµµ,¶øÄãµÄËùÓгÌʽûÓÐÒ»¸öÈϵÃËü,¶øÄãÖªµÀËüʹÓà PCM
È¡Ñù,ÄÇ÷áÄãÒ²ÐíÄܵõ½Ò»¸ö·Ç³£½Ó½üµÄÏë·¨ÔÚÆäÌýÆðÀ´ÏñÊÇÕâÖÖ·½Ê½
(Èç¹ûÄãºÜÐÒÔ˵Ļ°).
3. ÆäËûʵÓô¦ÀíÉùÒôµÄÓ¦Óù¤¾ß
Õâ½Ú²¢Ã»ÓÐʵ¼Ê´¦Àí²¥·ÅÉùÒôµµµÄÊÂ.¶øÊÇ,ÊÕ¼¯Ò»Ð©´¦ÀíÉùÒôµÄ¹¤¾ß,
Ä㽫»á·¢ÏÖÂùÓÐÓõÄ.
3.1 volume
ÕâÊÇÒ»¸ö¼òµ¥ÃüÁîÁнéÃæÀ´¿ØÖÆÒôÁ¿(Ëü»¹ÄÜ×öʲ÷á?)
ÔÚ°ü×°ÖÐ,Ëü»¹ÓÐÒ»¸ö·Ö¿ªµÄ³Ìʽ,ÓµÓÐ Tcl/Tk ½éÃæ, À´¿ØÖÆÒôÁ¿ºÍ²¥·Å .au ÉùÒôµµ.
Ò»¸ö·Ç³£¼òµ¥µÄ Tcl/Tk CD ²¥·Å³ÌʽҲ°üº¬½øÈ¥.
ÕâÊÇÃâ·ÑÈíÌå,ÊÇ Sam Lantinga ËùдµÄ. (slouken@cs.ucdavis.edu).
ËüÄÜÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/sound
card/volume-2.1.tar.gz.
3.2 Sound Studio
ÕâÊÇ Tcl/Tk дµÄÓ¦ÓóÌʽ,¿ÉÖ§Ô®²¥·Å,¼ÖÆ, ÒÔ¼°±à¼Ê¹Óà sox
____________________
10.<URL:http://www.realaudio.com/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 12
µÄÊýλÉùÒô.ËüÔÚ·¢Ðа汾ÖоͰüº¬ÓÐ sox ±ÜÃâÏàÈÝÐÔµÄÎÊÌâ.
×÷ÕßΪ Paul Sharpe and N. J. Bailey (N.J.Bailey@leeds.ac.uk).
Ëü¿ÉÒÔÃâ·ÑʹÓü°ÔÙÉ¢²¼,ÈôÄãÓмÄÕÅÃ÷ÐÅ¿¨µÄ»°.
Ëü¿ÉÔÚ Sound Studio's home page11 ÕÒµ½.
3.3 Tickle Music
Õâ beta Tcl/Tk ³ÌʽÊÇÒ»¸öÒôÀÖµµä¯ÀÀ³Ìʽ,
ËüÔÊÐíÄã²¥·Å¸÷ÖÖÉùÒô¸ñʽ,Ö»ÒªÄãϵͳÖÐÓÐÊʵ±³Ìʽ¿ÉÒÔ²¥·ÅµÄ. ÄÚ¶¨µÄ gmod
ÊÇÓÃÀ´²¥·Å MOD µµ,¼° mp ÔòÊDz¥·Å MIDI µµ (Äã¿ÉÒԸıä³ÌʽÔʼÂëÀ´Ê¹ÓÃÆäËû³Ìʽ).
×÷Õß¼°°æȨ¹éÊôÊÇ Shannon Hendrix (shendrix@pcs.cnu.edu or shendrix@escape.wido
maker.com).
Ëü¿ÉÈ¡ì¶ anonymous FTP ÔÚ sunsite.unc.edu É쵀 /pub/Linux/apps/sound/play
ers/tmusic-1.0.tar.gz.
4. ²Î¿¼×ÊÁÏ
1. ±¾ÎļþÖÐÌáµ½µÄÓ¦ÓóÌʽËùÄÚ¸½Îļþ.
2. Linux Sound HOWTOÎļþ. ËüÄÜÔÚ Linux Documentation Project12 ÕÒµ½.
3. The Linux MIDI and Sound Pages13
4. MPEG Audio Layer 3 FAQ14
5. Programmer's Guide to OSS15
6. SoX home page16
____________________
11.<URL:http://www.elec-
eng.leeds.ac.uk/staff/een6njb/Software/Studio/screens.html>
12.<URL:http://sunsite.unc.edu/LDP/>
13.<URL:http://www.digiserve.com/ar/linux-snd/>
14.<URL:http://www.iis.fhg.de/departs/amm/layer3/sw/>
15.<URL:http://www.4front-tech.com/pguide/>
16.<URL:http://www.spies.com/Sox/>
The Linux Sound Playing HOWTO ÖÐÒë°æ 13
--
Enjoy Linux!
-----It's FREE!-----
¡ù À´Ô´:£®×Ï ¶¡ Ïã bbs.hit.edu.cn£®[FROM: mtlab.hit.edu.cn]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º204.680ºÁÃë