Difference between revisions of "Configuring Applications for OSSv4"

From Open Sound System
Jump to: navigation, search
Line 4: Line 4:
 
** flashsupport.c is found at /usr/lib/oss/lib
 
** flashsupport.c is found at /usr/lib/oss/lib
 
** compile it with
 
** compile it with
   cc -m32 -shared -O2 -Wall -Werror -lssl flashsupport.c -o libflashsupport.so
+
   cc -fPIC -m32 -shared -O2 -Wall -Werror -lssl flashsupport.c -o libflashsupport.so
 
** 64 bit users will require gcc multilib support.
 
** 64 bit users will require gcc multilib support.
 
** If there's a compilation error, try removing the #define SSL line, and compiling again without -lssl.
 
** If there's a compilation error, try removing the #define SSL line, and compiling again without -lssl.

Revision as of 23:49, 2 February 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:
    • flashsupport.c is found at /usr/lib/oss/lib
    • compile it with
 cc -fPIC -m32 -shared -O2 -Wall -Werror -lssl flashsupport.c -o libflashsupport.so
    • 64 bit users will require gcc multilib support.
    • If there's a compilation error, try removing the #define SSL line, and compiling again without -lssl.
    • Once libflashsupport.so is compiled, move it to /usr/lib
    • Run ldconfig
    • Restart browser
  • 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.
    • Start timidity -Od -ir 7777 and then run scummvm. Select "TiMidity" as a music driver.
  • SDL
    • Debian: install libsdl1.2-debian-oss or libsdl1.2-debian-all
    • set SDL_AUDIODRIVER=dsp in the environment
  • sox
    • Debian: install libsox-fmt-oss
  • wine
    • Debian: install libwine-oss
  • xine
    • write audio.driver:oss to ~/.xine/config