Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

OSS 4.2 Installation for improved sound!!!!

Post your How to's here


OSS 4.2 Installation for improved sound!!!!

Postby Hawks-SOAD » Fri Sep 04, 2009 2:20 am

Hi guys me again having trouble with sound or want improved sound try this
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/
this creates a build directory

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 <BREW>

edit: fixed a typo
User avatar
Hawks-SOAD
Moderator
 
Posts: 391
Joined: Fri Aug 08, 2008 10:38 am
Location: Melbourne, VIC, Australia
Age: 32
Operating System: Other Linux

Return to How To's (Do not post questions please)

Who is online

Users browsing this forum: No registered users and 33 guests