ok first i have to mention oss4 is now gpled so its now open source again woot!!
install these prerequisites
- Code: Select all
sudo apt-get install -y binutils libgtk2.0-0 sed gcc libc6
sudo apt-get install -y build-essential linux-headers-`uname -r` gawk libtool libgtk2.0-dev
sudo apt-get install -y libesd0 libsdl1.2debian-oss
ok to get started we have to black list the alsa modules
- Code: Select all
sudo dpkg-reconfigure linux-sound-base
and choose OSS this prevents the alsa modules from loading , reboot
now remove pulseaudio
- Code: Select all
sudo apt-get remove pulseaudio
there is 3 ways of install choose the one that suits you
to install from the repos
- Code: Select all
sudo apt-get install oss4-base oss4-dkms oss4-gtk
this will automagically rebuild the modules when ever you update your kernel so you don't need to reinstall after an update.
to install from the website download the OSS4 binaries as a DEB package from http://www.opensound.com/download.cgi and install it.but you’ll manually need to reinstall the package every time your kernel is updated. Also, this package is not GPL but has a commercial one-year license.
to install with mercurial
- Code: Select all
sudo apt-get install -y mercurial
cd /opt
sudo hg clone http://opensound.hg.sourceforge.net:8000/hgroot/opensound/opensound oss-devel
this install mercurial and grabs the source
- Code: Select all
cd ~/
sudo rm -rf oss42build
mkdir oss42build
cd oss42build/
- Code: Select all
NO_WARNING_CHECKS=yes /opt/oss-devel/configure --enable-libsalsa=NO
make
sudo make deb
sudo dpkg -i oss*.deb
this builds and makes the .deb file and installs it
to update your build use
- Code: Select all
cd /opt/oss-devel
sudo hg pull
sudo hg update
cd ~/
sudo rm -rf oss42build
mkdir oss42build
cd oss42build
and then follow the build and install steps posted above
now add this repo to put the default volume control mixer back https://launchpad.net/~dtl131/+archive/ppa
- Code: Select all
sudo add-apt-repository ppa:dtl131/ppa
then go to your update manager and install the updates
last but not least Configure Gstreamer for OSS4 output:
- Code: Select all
sudo apt-get install gstreamer0.10-plugins-bad
Run gstreamer-properties and set input and output to OSS.
- Code: Select all
gstreamer-properties
and Set up ALSA (or rather libasound) to output through OSS4 instead of the native ALSA drivers. Create a configuration file:
gedit ~/.asoundrc
Insert the following:
pcm.!default
{
type oss
device /dev/dsp
}
mixer.!default
{
type oss
device /dev/dsp
}
and the last thing to do is add the volume control back to your panel , right click on your panel click add voulme control applet
thanks for reading my guide and i hope it all goes well for you
ps as a last note you maybe have to configure some applications to use oss4 instead of pulse audio
edit: fixed a typo