There are many ways to customize the sound output. I will highlight three: ALSA, OSS and PulseAudio.
I will describe these technologies, but I recommend leaving ALSA for the first time. This material will be useful if a specific application requires OSS or PulseAudio.
ALSA
ALSA - Advanced Linux Sound Architecture. This audio interface in Ubuntu 7.10 is installed and configured, so there are no problems with its use.
This interface is standard and recommended for Ubuntu, so you can leave it for the first time.
Oss
OSS - Open Sound System. One of the standard interfaces for playback and audio capture in Linux.
This interface is outdated; it has been replaced by ALSA. It should be set only for compatibility with the old software.
')
1. Make sure the packages are:
build-essential, gcc, make, binutils, libssl-dev, linux-headers-`uname -r` .
sudo apt-get install build-essential gcc make binutils libssl-dev linux-headers-`uname -r`2. Select, download and install the package (usually x86 (DEB)) by the link
www.4front-tech.com/download.cgiAt the same time during the installation, the installer can say something like:
ERROR: Module snd_pcm is in use by snd_ice1724, snd_intel8x0, snd_ac97_codec, snd_ak4114
ERROR: Module snd_pt2258 is in use by snd_ice1724
ERROR: Module snd_i2c is in use by snd_ice1724, snd_pt2258
ERROR: Module snd_ak4xxx_adda is in use by snd_ice1724, snd_ice17xx_ak4xxx
ERROR: Module snd_mpu401_uart is in use by snd_ice1724
ERROR: Module snd_rawmidi is in use by snd_mpu401_uart
ERROR: Module snd_timer is in use by snd_pcm
ERROR: Module snd_seq_device is in use by snd_rawmidi
ERROR: Module snd_page_alloc is in use by snd_intel8x0, snd_pcm
Failed to disable conflicting sound drivers
Reboot and try running soundon again
Also check that you have compiled sound support statically
into the kernel.4. Calmly rebooting and going to the BIOS - it is very desirable to disable the built-in audio codec - as the following problem may occur:
- Detected M Audio Revolution 5.1
Detected Nvidia nForce2
Detected Generic USB audio device (BETA)
Detected OSS Transparent Virtual Mixing Architecture
- Starting Open Sound System
ERROR: Module snd_intel8x0 is in use
ERROR: Module snd_ac97_codec is in use by snd_intel8x0
ERROR: Module snd_pcm is in use by snd_intel8x0, snd_ac97_codec
ERROR: Module snd_timer is in use by snd_pcm
ERROR: Module snd_page_alloc is in use by snd_intel8x0, snd_pcm5. After the reboot, perform in the terminal:
cat / dev / sndstatThe output will be similar to:
OSS 4.0 (b1009 / 200711130545) © 4Front Technologies 1996-2007
**** UNREVERSE VERSION ****
This OSS version will expire after: May 2008
Audio devices:
0: M Audio Revolution 5.1 front out (OUTPUT)
1: M Audio Revolution 5.1 c / l out (OUTPUT)
2: M Audio Revolution 5.1 surround out (OUTPUT)
3: M Audio Revolution 5.1 digital out (OUTPUT)
4: M Audio Revolution 5.1 analog in (INPUT)
Mixers:
0: M Audio Revolution 5.16. Check work
osstest7. Sound in flash
Open the /usr/lib/oss/lib/flashsupport.c file with administrator rights, comment out the "#define OPENSSL" line with two slashes (//) and save it.
Go to the folder / usr / lib / oss / lib
cd / usr / lib / oss / libCompile
sudo cc -shared -m32 -O2 -Wall -Werror -lssl flashsupport.c -o /tmp/libflashsupport.soInstalling
sudo install -s /tmp/libflashsupport.so / usr / lib /And we can create a link for Firefox
sudo ln -s /usr/lib/libflashsupport.so / usr / lib / firefox / pluginsHere was considered the installation of the retail version. It is free, but needs to be updated every six months by the team:
sudo ossupdatePulseAudio
PulseAudio is not just a sound output interface. This is a whole sound server. With it, sound can be transmitted over communication channels and played on remote machines.
This interface is very promising. Some modern software already requires it.
It is easy to put:
1. Install the necessary packages:
sudo apt-get install "pulseaudio- *" paman padevchooser paprefs2. For sound to work in flash, you need to download and put the package
www.paulbetts.org/projects/libflashsupport_1.0~2219-1_i386.deb3. Edit the ALSA settings file (sudo gedit /etc/asound.conf), write there:
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.! default {
type pulse
}
ctl.! default {
type pulse
}4. Open the System → Settings → Sound and on the “Sounds” tab, enable the “Enable software sound mixing (ESD)” option.
5. Add all users to the pulse-access group. Open System → Administration → Users and Groups, Manage Groups and select the pulse-access group, where we add all users who will use the audio server.
6. Run PulseAudio
pulseaudioTo keep abreast of my articles, you can subscribe to the RSS feed.
Everyone can help the development of this series of articles, to share their experiences. Welcome to: http://www.linuxman.ru . All changes to the wiki, I will eventually transfer to Habr.Manual:
Step Back ,
Step Forward ,
Content