readme
来自「大名鼎鼎的CE下播放软件,TCPPMP的源代码!!!2410下可以流畅的解QVG」· 代码 · 共 450 行 · 第 1/2 页
TXT
450 行
You can find more information on ALSA, including an HOWTO, on the web: http://www.alsa-project.orgThe Advanced Linux Sound Architecture (ALSA) is still in beta, but itsAPI is stable, so this libmikmod version should work with futureversions of ALSA.This version of the libmikmod ALSA driver works with either ALSAversions 0.3.x (for Linux kernels 2.0.x) and 0.4.x (for Linux kernels2.2.x and later).The latest versions, 0.5.x and 0.9.x, are currently not supported natively,although you can use the OSS emulation without problems.If the sound comes out jerky, you can pass the "buffer=xx" option to thedriver, to tweak the ALSA settings. The default value (if this option isnot used) is 4; the slower your machine is, the greater this value hasto be, but the allowed range is 2 to 16. However, the ALSA generallyfinds good settings for your configuration, so I doubt you'll have touse this option.>> ENLIGHTENED SOUND DAEMON SPECIFIC INFORMATION (Unix specific)------------------------------------------------The Enlightened Sound Daemon (EsounD) is still experimental and maychange a lot until it reaches the 1.0 release. Thus, this libmikmodversion might not work with future versions of EsounD.You can find more information on EsounD on the web: http://www.tux.org/~ricdude/EsounD.htmlHowever, this page is getting very out of date. Recent EsounD work canbe found on the GNOME project: http://www.gnome.org/applist/view.php3?name=esoundwhich not kept up-to-date either...The version of the libmikmod EsounD driver coincides with the latestEsounD release available when this version of libmikmod was released;for the 3.1.10 release, this is EsounD v0.2.23, but libmikmod shouldwork with any version starting from 0.2.6, although the latest versionis recommended.Please note that between 0.2.8 and 0.2.12 the server port and theprotocol have changed, thus clients compiled with libesd from 0.2.8 cannot communicate with 0.2.12 (and later) esd, and vice versa.If the esd daemon dies, libmikmod will try to reconnect every 5 secondsand every new module, if a module ends. So, you can safely restart esdand wait 5 seconds, and voila! Sound is back...If you run esd and a libmikmod application on the same machine,everything should work fine. However, if there is a real networkconnection, synchronization problems can occur.If sound clicks or gets chopped, then you've likely got asynchronization problem. Pausing the player for a second should causethe problem to disappear. If there's still problems, perhaps yournetwork is not fast enough. Lowering the playback rate will hopefullysolve the problem.Also, the performance of the esd is really abominable if the esdplayback frequency can't be divided by the libmikmod playback rate. Forexample, runinng a libmikmod application at 42000 Hz with esd at 44100Hz will sound horrible, and take a lot of CPU time due to resampling.>> SGI DRIVER SPECIFIC INFORMATION (IRIX specific)----------------------------------The SGI audio driver was written by Stephan Kanthak in 1996 and itsauthor grants to distribute it with the libmikmod package under the samerestrictions as the library.If you encounter any problems concerning crackles or short stops whileplaying, feel free to experiment with the values of the fragsize andbufsize options of the driver. The default values are 20000 for fragsizeand 40000 for bufsize. Increasing bufsize might result in nonstop soundon slow machines, but increases latency of interactive applications. Thevalue of fragsize should be set to about half of bufsize in most casesand needs to be increased only if you own a very slow SGI.Common problems- libmikmod does not compile on my SGI? First check out whether you have the SGI audio library (libaudio) or not. If the audio library is missing you should upgrade to IRIX 5.3 or newer and you will obtain the media development package automatically with it. If you have the audio library installed, check out if it is in the linker path. Also, the audio API has been extended in recent IRIX releases (6.4 and later). The older API used by libmikmod is supposed to be still supported, please drop me a note if it is not on your IRIX release.- Sound is _very_ noisy? Change sample size to 16 bits.- Sound crackles or stops temporarily? Try to increase the value of the fragsize driver option (default value is 20000). Switch to mono mode if necessary.- libmikmod applications only react very slowly? This is a typical effect on SGI machines because the audio library sets up an internal buffer that seems to be quite large on many installations. Try to decrease the bufsize driver option (default value is 40000).How to contact the driver author:Stephan Kanthak <kanthak@i6.informatik.rwth-aachen.de>Please cc: me (miod), just in case.>> SUNOS, SOLARIS, NETBSD AND OPENBSD DRIVER SPECIFIC INFORMATION-----------------------------------------------------------------The above mentioned systems use the same interface to the audio device.The libmikmod driver for this interface is the Sun driver. It was codedby Valtteri Vuorikoski <vuori@sci.fi> and updated to libmikmod 3 by TorNorbye <tor@cs.stanford.edu>, and has been modified to work under NetBSDand OpenBSD by the current maintainer.This driver works with old sound hardware using 8 KHz mono ulaw, andwith modern hardware using pcm mono or stereo at any frequency. If yoursettings aren't supported by the audio device, sound initialization willfail. Refer to the audio(7) man page under SunOS/Solaris and theaudio(4) man page under NetBSD/OpenBSD for more details on your audiohardware and its capabilities.On Sun workstations, you might be interested in passing the "headphone"option to the driver to force output on the headphones, since pluggingthe headphones is not enough.If you run NetBSD or OpenBSD, the driver does not support the headphoneand speaker parameters, but you can achieve the same effect withaudioctl(1), for example: audioctl -w play.port=1will select the speaker, while a value of 2 would have selected theheadphone.If sound is jerky, you can pass the "buffer=xx" option to the driver toincrease its internal buffer size. The default value (when this optionis not used) is 12; the slower your machine, the greater this value hasto be, in the range 7-17.If you can't get libmikmod to work with your hardware, you can use itsraw disk writer driver, in 8 bit mono 8 kHz, and send the music.raw fileto /dev/audio with sox, using the following command line: sox -t raw -c 1 -r 8000 -u -b music.raw -t raw -U -r 8000 \ -c 1 -b /dev/audio(or use the piped output driver with this command line)Or if you played in 16 bit stereo, you can convert the file to a .aufile: audioconvert -o music.au -f sun \ -i rate=44.1k,channels=stereo,encoding=linear16 music.rawand play the file: audioplay -p headphone -v 10 music.au>> SAM9407 DRIVER SPECIFIC INFORMATION (Linux specific)--------------------------------------The SAM9407 driver provides an OSS-compatible driver for the soundcardsbased on the sam9407 audio chip (MaxiSound 64 and Terratec EWS, amongothers), and provides advanced features such as hardware moduleplayback.You can find more information on this driver on the web: http://www.anime.net/~sam9407The version of the libmikmod sam9407 driver coincides with the latest sam9407driver release available when this version of libmikmod was released; for the3.1.10 release, this is sam9407 driver v1.0.0.>> THANKS---------I would like to thank everyone who contributed to libmikmod. Their namesare in the AUTHORS file for the significative contributions, but someother names can be found in the NEWS file. Thanks a lot! Keepinglibmikmod alive wouldn't be much fun without you.>> LICENSE----------The libmikmod sound library is covered by the GNU Library General PublicLicense as published by the Free Software Fundation (you'll find it inthe file COPYING.LIB); either version 2 of the licence, or (at youroption) any later version.The GNU Lesser General Public License, version 2.1, in fileCOPYING.LESSER, can be considered as a later version of the LGPL, and isstrongly recommended for people who will embed libmikmod in theirapplication as a shared library.Parts of the library (in playercode/mdulaw.c) are derived from the fileslibst.h and raw.c from an old version of the sox (SOund eXchange)package written by Lance Norskog and Jef Poskanzer. The followingcopyright notice applies to these parts: Copyright (C) 1989 by Jef Poskanzer. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty.>> CONTACT AND DOWNLOAD INFO----------------------------* email: Please send all your libmikmod related e-mail to me, at: mikmod@raphnet.net* web: libmikmod home page is located at: http://mikmod.raphnet.net
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?