Thread: Sound issues
View Single Post
Old November 14th, 2007   #60
Temüjin
Deprecated
 
Join Date: Jun 2007
Location: PA, USA
Beans: 5,205
Ubuntu 9.10 Karmic Koala
Re: Sound issues

Check to see if your device is supported by OSS:
The official and outdated list can be found at http://manuals.opensound.com/devlists/Linux.html
(Ignore the old references to retail drivers; it's all free now)
I've also attached the device list from the latest build (4.0-1014) so double-check that if you don't see your card on the site's list.

Go here:http://www.4front-tech.com/download.cgi
Get the Linux 2.6 DEB package for your architecture (use x86 unless you have the amd64 Ubuntu) and save it to your home folder (i.e. the ~/ directory)

0. Get necessary packages
Code:
sudo apt-get install gcc gcc-4.1 gcc-4.1-base make build-essential binutils linux-headers-`uname -r` libssl-dev libssl0.9.8
1. Copy these directions to a text file so you can view them from a terminal, or print them out/write them down
2. Remove ALSA:
Code:
sudo apt-get remove alsa-base
3. Reboot, but don't log in
4. Change your session (clicking the icon in the lower left of the login screen) to failsafe terminal.
5. Now Log In
6. Navigate to where you have the deb file saved (e.g. if it's your home dir, cd ~/ ). Note the name of the file will be oss-linux_v4.0-1014_amd64.deb if you downloaded that version
Code:
sudo dpkg -i oss-linux_v4.0-1014_i386.deb
sudo soundon
7. Just issue the exit command and when it goes back to the login screen, log in as normal.
8. You'll need to right-click on and remove the mixer/volume control icon from the panel.
9. In a terminal, run the ossinfo command. The mixer devices are numbered, so note the number of the mixer device you want to control.
10. Add a new custom application launcher to the panel that runs the command: ossxmix -d<mixer number you got in step 9> That's ossxmix, not ossmix, and the command will default to -d0 if you don't add a switch. Name the launcher whatever you want and pick an icon. I named mine "Mixer" and chose /usr/share/icons/gnome/32x32/status/stock_volume-med.png as my icon.

If you're still not getting sound, see what the ossdetect -v and ossinfo commands give you.

ADDENDUM: Volume Control Patch The current gstreamer-based volume control in GNOME is incompatible with OSSv4, meaning your mouse wheel and media buttons won't work. To remedy the issue, try Clive Wright's patch. I've also built and attached an AMD64 version to this post. Note that this patch was updated on 1/8/08, so if you tried it before then and it didn't work, try again.
Also, if you'd prefer to map commands to your shortcut keys, here are some scripts to use (at the bottom of the page).

ADDENDUM2: Sound in Flash (AMD64 users, see the end of this post for important note)

1. Run:
Code:
file /usr/lib/libflashsupport.so
If this returns info on the file, skip ahead to step 4. If the file isn't found...
2. You need to compile /usr/lib/oss/lib/flashsupport.c
To do so, open the file with a text editor (and root access) and comment out the #define OPENSSL line by putting two '/'s' in front of it. (Make sure #define OSS does not have anything in front of it.) Save and close.
3.
Code:
cd /usr/lib/oss/lib; sudo cc -shared -O2 -Wall -Werror flashsupport.c -o libflashsupport.so; sudo cp /usr/lib/oss/lib/libflashsupport.so /usr/lib/
4. create symbolic links to /usr/lib/firefox/plugins & /usr/lib/mozilla/plugins:
Code:
sudo ln -s /usr/lib/libflashsupport.so /usr/lib/firefox/plugins; sudo ln -s /usr/lib/libflashsupport.so /usr/lib/mozilla/plugins
AMD64 Users:If you're on 64-bit Ubuntu and running the 32-bit plugin with nspluginwrapper, follow the steps above, except add the -m32 flag to the compilation command in step 3. You'll also need the gcc-4.1-multilib package.
So, for step #3:
Code:
sudo apt-get install gcc-4.1-multilib
cd /usr/lib/oss/lib; sudo cc -shared -O2 -Wall -Werror -m32 flashsupport.c -o libflashsupport.so; sudo cp libflashsupport.so /usr/lib
Attached Files
File Type: gz gstreamer-ossv4-amd64.tar.gz (78.6 KB, 881 views)
File Type: txt devices.txt (6.8 KB, 677 views)

Last edited by Temüjin; March 2nd, 2008 at 05:59 AM..
Temüjin is offline   Reply With Quote