You are not logged in.

#1 2006-09-29 18:23:49

shaurz
Member
Registered: 2004-02-02
Posts: 358

Solution to OSS problem without using "aoss"

Sometime recently-ish, sound stopped working in OSS apps (flash, xmms). A little googling reveals that I now have to launch them with aoss! This is unacceptable!

The aoss script simply sets the LD_PRELOAD environment variable so that libaoss.so is loaded for OSS emulation. Here is a solution so that all your OSS apps can play sound (even simultaneously!) without using aoss.

Put the following into /etc/profile.d/aoss.sh and chmod it executable:

#!/bin/sh

export LD_PRELOAD=/usr/lib/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD}

You need to restart for it to take effect. Maybe this should be part of the alsa-oss package?

Offline

#2 2006-09-30 13:50:43

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Solution to OSS problem without using "aoss"

Woo, great!

Thanks.

Offline

#3 2006-09-30 21:58:01

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Solution to OSS problem without using "aoss"

Thanks!


to live is to die

Offline

#4 2006-09-30 23:23:50

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Solution to OSS problem without using "aoss"

Cool! I'll have to see how this works with Wine...

(Wine's ALSA support at the moment is kind of crappy.)

Offline

#5 2006-10-01 11:21:51

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Solution to OSS problem without using "aoss"

Gullible Jones wrote:

Cool! I'll have to see how this works with Wine...

(Wine's ALSA support at the moment is kind of crappy.)

Tested with 'wine Steam.exe' but got no sound in cs while listening to music :-/
well, lets hope the wine dev's concentrate on alsa and get to work soon.

cheers,
detto

Offline

#6 2006-10-01 13:20:45

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Solution to OSS problem without using "aoss"

take a look at this:
http://gentoo-wiki.com/HOWTO_ALSA_sound … _Emulation

lets you use dmix to mix in an OSS app with your alsa apps. admittedly it's only one OSS app at a time, but i've never needed to use more than that.

works sweet for quake4 + mpd

James

Offline

#7 2006-10-01 16:29:51

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Solution to OSS problem without using "aoss"

detto wrote:
Gullible Jones wrote:

Cool! I'll have to see how this works with Wine...

(Wine's ALSA support at the moment is kind of crappy.)

Tested with 'wine Steam.exe' but got no sound in cs while listening to music :-/
well, lets hope the wine dev's concentrate on alsa and get to work soon.

cheers,
detto

I'm able to play music and watch Flash animations with sound at the same time, with no detectable loss of sound quality. It doesn't work at all with Wine though - in fact, it causes stuff running in Wine to crash.

iphitus wrote:

take a look at this:
http://gentoo-wiki.com/HOWTO_ALSA_sound … _Emulation

lets you use dmix to mix in an OSS app with your alsa apps. admittedly it's only one OSS app at a time, but i've never needed to use more than that.

works sweet for quake4 + mpd

James

Cool, I'll try that then. I wonder if there's a way to dmix more than one?

Offline

#8 2006-10-01 18:03:10

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Solution to OSS problem without using "aoss"

Nope, doesn't work at all. For anything. No sound mixing for OSS stuff.

Is the ENS1371 one of those "special" cards they mention?

Offline

#9 2006-10-02 09:39:03

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Solution to OSS problem without using "aoss"

Gullible Jones wrote:

Nope, doesn't work at all. For anything. No sound mixing for OSS stuff.

Is the ENS1371 one of those "special" cards they mention?

oh well, it's works-for-me. but aoss works too.

James

Offline

#10 2008-02-13 19:35:27

dyzdyz
Banned
Registered: 2007-01-22
Posts: 20

Re: Solution to OSS problem without using "aoss"

This solves problem with my newly acquired Ensoniq ES1371. I was looking for solution for two days now. Thanks shaurz.

Offline

#11 2008-02-14 00:05:02

ssjlegendx
Member
Registered: 2008-01-01
Posts: 94
Website

Re: Solution to OSS problem without using "aoss"

Thanks for posting this solution! It's quite fortunate that this thread got "bumped"! smile

Last edited by ssjlegendx (2008-02-16 02:55:33)


#!/vim/rocks

Offline

Board footer

Powered by FluxBB