![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Jason on Saturday March 31, @11:59PMfrom the Sounds-Like-Fun dept. When you first install FreeBSD, there is no audio support. If you want to play mp3's and other audio files, you need to either compile audio support into your kernel, or download 3rd party drivers. [Purchase Drivers] If you have never compiled a kernel and your just not ready to tackle it, or your audio card is not supported by FreeBSD, you may want to purchase 3rd party audio drivers and install them from a simple install script. Keep in mind that these drivers will cost money, $15.00-$60.00 USD. You can acquire the drivers from 4Front Technologies. [Compile Your Own] If you have a PNP audio card that is supported by FreeBSD, compiling it in the kernel is easy. To find out what cards are supported check the Release Notes. If you have not yet compiled a kernel, you should take a moment and read the HOW-TO: Compile a Custom Kernel. [PNP Audio Drivers] Audio cards that support PNP are nice because you don't have to provide information about your card settings. All you do is add the pcm device driver to your kernel. (note: I am using the ee editor in my example, you can always use vi or some other editor of your choice) Login: root Password: ******* # cd /usr/src/sys/i386/conf # ee MYKERNEL Append the end of the KERNEL config file with the pcm driver option: device pcm Now save the file, recompile your kernel, install it and reboot. When your machine restarts, it should display the new pcm driver information at startup. Here is a sample of my startup messages: sbc0: pcm0: (note: If you do not see pcm information, it could be that your audio card is not supported, or that your card does not support PNP). Finally, login as root and make your audio device: # Login: root # Password: ******* # cd /dev # sh MAKEDEV snd0 [Non-PNP Audio Drivers] For non-PNP audio cards, you will follow the same procedure as PNP, but you need to provide more information, such as the IRQ and IO address ranges of your card. Here is a sample with common settings. Your audio card may be different. Append the end of the KERNEL config file with the pcm driver option: device pcm0 at isa? port? irq 5 drq 1 flags 0x15 If the pcm driver displays your audio card at boot time and the snd0 device is created without any errors, then your ready to install some audio applications! (note: for more information on the pcm drivers. Try the man page) man pcm < | >
|
|
||||||||||||||||||
|
||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |