Difference between revisions of "Configuring Applications for OSSv4"
From Open Sound System
Line 10: | Line 10: | ||
** To compile: cc -shared -m32 -O2 -Wall -Werror -lssl flashsupport.c -o /tmp/libflashsupport.so | ** To compile: cc -shared -m32 -O2 -Wall -Werror -lssl flashsupport.c -o /tmp/libflashsupport.so | ||
*** Some 64 bit users may want to compile a 64-bit library instead: cc -shared -O2 -Wall -Werror -fPIC flashsupport.c -o /tmp/libflashsupport.so | *** Some 64 bit users may want to compile a 64-bit library instead: cc -shared -O2 -Wall -Werror -fPIC flashsupport.c -o /tmp/libflashsupport.so | ||
− | ** sudo install -s /tmp/libflashsupport.so /usr/lib/ | + | ** sudo install -s /tmp/libflashsupport.so /usr/lib/oss/lib |
** Restart browser | ** Restart browser | ||
Line 28: | Line 28: | ||
* scummvm - MIDI music | * scummvm - MIDI music | ||
− | ** scummvm 0.11.0 supports midi output via timidity. | + | ** scummvm 0.11.0 supports midi output via timidity and also via fluidsynth. |
** Start timidity -Od -ir 7777 and then run scummvm. Select "TiMidity" as a music driver. | ** Start timidity -Od -ir 7777 and then run scummvm. Select "TiMidity" as a music driver. | ||
+ | ** Alternately, if fluidsynth is compiled, you can select it as music driver. You need to add a soundfont entry to ~/.scummvmrc . | ||
* SDL | * SDL |
Revision as of 22:35, 2 March 2008
Most applications should work with OSSv4 out of the box. However, some distributions separate the OSS output plugins, or patch the software to use another sound API. This page will show how to tell some common applications to use the OSS API. There's no need to use any of these tips unless there's a problem.
- Flash V9:
- Ubuntu: do not install libflashsupport from apt-get. That version only supports Pulseaudio. Remove this package if you have it.
- Gentoo: you just need to add net-www/libflashsupport in /etc/portage/package.keywords file and emerge using: USE="oss ssl" emerge libflashsupport . Restart browser and now it should work. You can ignore the other instructions.
- flashsupport.c is found in /usr/lib/oss/lib
- Comment out "#define OPENSSL" by placing a '//' in front of that line
- 64 bit users will require gcc multilib support.
- In Debian/Ubuntu - sudo apt-get install gcc-multilib
- 64 bit users will require gcc multilib support.
- To compile: cc -shared -m32 -O2 -Wall -Werror -lssl flashsupport.c -o /tmp/libflashsupport.so
- Some 64 bit users may want to compile a 64-bit library instead: cc -shared -O2 -Wall -Werror -fPIC flashsupport.c -o /tmp/libflashsupport.so
- sudo install -s /tmp/libflashsupport.so /usr/lib/oss/lib
- Restart browser
- Gnome Volume Applet
- libao
- write default_driver=oss to ~/.libao
- mpg123
- Debian: install mpg123 instead of mpg123-alsa
- MPlayer
- write "ao=oss" to ~/.mplayer/config
- scummvm - MIDI music
- scummvm 0.11.0 supports midi output via timidity and also via fluidsynth.
- Start timidity -Od -ir 7777 and then run scummvm. Select "TiMidity" as a music driver.
- Alternately, if fluidsynth is compiled, you can select it as music driver. You need to add a soundfont entry to ~/.scummvmrc .
- SDL
- Debian: install libsdl1.2-debian-oss or libsdl1.2-debian-all
- set SDL_AUDIODRIVER=dsp in the environment
- skype
- sox
- Debian: install libsox-fmt-oss
- wine
- Debian: install libwine-oss
- Select OSS driver in winecfg - audio tab. (In some cases winecfg will output ALSA lib errors - they can be ignored).
- vlc
- Write "aout=oss" to ~/.vlc/vlcrc
- xine
- write "audio.driver:oss" to ~/.xine/config