/etc/oss.conf and Ubuntu

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

/etc/oss.conf and Ubuntu

Postby L29Ah » Sun Feb 03, 2013 3:29 am

I have read http://manuals.opensound.com/developer/programming.html and included that in my Makefile:
Code: Select all
include /etc/oss.conf
CFLAGS += -I$(OSSLIBDIR)/include/sys

It worked flawlessly on Gentoo. But in Ubuntu I'm faced with that:
Code: Select all
‰ cat etc/oss.conf
OSSETCDIR=/etc/oss4
OSSVARDIR=/var/lib/oss4
OSSDKMSDIR=/var/lib/dkms/oss4/4.2-build2005

So cc fails at finding <soundcard.h>. Moreover, there's no usual OSSLIBDIR location, /usr/lib/oss. The oss4-dev package installs soundcard.h to /usr/include/linux/, replacing the original header. How should I handle such distros? Or is it a bug in Ubuntu package?
L29Ah
 
Posts: 11
Joined: Sun Nov 28, 2010 6:35 am

Re: /etc/oss.conf and Ubuntu

Postby igorzwx » Sun Feb 03, 2013 12:22 pm

L29Ah wrote:I have read http://manuals.opensound.com/developer/programming.html and included that in my Makefile:
Code: Select all
include /etc/oss.conf
CFLAGS += -I$(OSSLIBDIR)/include/sys

It worked flawlessly on Gentoo. But in Ubuntu I'm faced with that:
Code: Select all
‰ cat etc/oss.conf
OSSETCDIR=/etc/oss4
OSSVARDIR=/var/lib/oss4
OSSDKMSDIR=/var/lib/dkms/oss4/4.2-build2005

So cc fails at finding <soundcard.h>. Moreover, there's no usual OSSLIBDIR location, /usr/lib/oss. The oss4-dev package installs soundcard.h to /usr/include/linux/, replacing the original header. How should I handle such distros? Or is it a bug in Ubuntu package?


That OSS4 package in Ubuntu/Debian repositories is known to be buggy.

You can build OSS4 from mercurial.
The manual is here: https://help.ubuntu.com/community/OpenS ... rom_Source

You can test OSS4 on a LiveCD without installing Ubuntu on your computer.
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: /etc/oss.conf and Ubuntu

Postby tysonedriscoll » Thu Feb 07, 2013 2:13 pm

Can I test OSS4 on LiveCD booted from USB?
tysonedriscoll
 
Posts: 2
Joined: Thu Feb 07, 2013 2:06 pm

Re: /etc/oss.conf and Ubuntu

Postby igorzwx » Thu Feb 07, 2013 2:36 pm

tysonedriscoll wrote:Can I test OSS4 on LiveCD booted from USB?


Yes.

Step 1: Boot LiveCD or LiveUSB.

Step 2: Remove PulseAudio.

Step 3: Install OSS4 over ALSA.

Step 4: Run OSS4:

Code: Select all
$ sudo soundon


NOTE: You do not need to unload ALSA modules before running OSS4.

Step 5: Run osstest:

Code: Select all
$ osstest


Code: Select all
$ ossxmix -b


and so on.

The [outdated] manual is here: viewtopic.php?f=3&t=3933&p=17359#p17316
igorzwx
 
Posts: 863
Joined: Sun Jun 28, 2009 9:31 pm

Re: /etc/oss.conf and Ubuntu

Postby tysonedriscoll » Thu Feb 07, 2013 2:49 pm

Thanks for quick response! :)
tysonedriscoll
 
Posts: 2
Joined: Thu Feb 07, 2013 2:06 pm

Re: /etc/oss.conf and Ubuntu

Postby cesium » Fri Feb 08, 2013 1:20 pm

As for the original question, /etc/oss.conf is just text. You can just add the correct OSSLIBDIR to /etc/oss.conf...
cesium
 
Posts: 896
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron