Discussion:
[Alsa-user] ice1712 + aoss + quakeforge/mpg123
Wulf Assols
2004-11-23 13:13:31 UTC
Permalink
(alsa-1.0.7)

i tried the "oss emulation" with aoss, and it didn't complain about mmap()
now, but the sound i get is just noise. sounds like it is looping very small
blocks of audio data over and over, and doing this in the wrong format.

"aoss mpg123 file.mp3" works, but its very unstable. the sound output speeds
up every few seconds, sounds like speed is doubled for 5 or so seconds, then
gets back to normal speed...

very strange...

btw: mpg123 without aoss is working perfectly.

i just tested the aoss thing with it, real problem ist still quake, which
doesnt work without aoss, and with aoss it just produces noise.

help.
Florian Schmidt
2004-11-23 13:31:07 UTC
Permalink
On Tue, 23 Nov 2004 16:12:54 +0100
Post by Wulf Assols
(alsa-1.0.7)
i tried the "oss emulation" with aoss, and it didn't complain about mmap()
now, but the sound i get is just noise. sounds like it is looping very small
blocks of audio data over and over, and doing this in the wrong format.
"aoss mpg123 file.mp3" works, but its very unstable. the sound output speeds
up every few seconds, sounds like speed is doubled for 5 or so seconds, then
gets back to normal speed...
very strange...
btw: mpg123 without aoss is working perfectly.
i just tested the aoss thing with it, real problem ist still quake, which
doesnt work without aoss, and with aoss it just produces noise.
aoss mmap support is broken and it seems to be consencus that it cannot
be fixed (IIRC).

flo
Lee Revell
2004-11-23 16:48:01 UTC
Permalink
Post by Florian Schmidt
Post by Wulf Assols
i just tested the aoss thing with it, real problem ist still quake, which
doesnt work without aoss, and with aoss it just produces noise.
aoss mmap support is broken and it seems to be consencus that it cannot
be fixed (IIRC).
Really? I though perex said it could be fixed but it would not be easy.
Or was he referring to the kernel OSS emulation rather than the
userspace?

Lee
Wulf Assols
2004-11-24 12:27:51 UTC
Permalink
Hi Jaroslav!
Post by Lee Revell
Post by Florian Schmidt
Post by Wulf Assols
i just tested the aoss thing with it, real problem ist still quake, which
doesnt work without aoss, and with aoss it just produces noise.
aoss mmap support is broken and it seems to be consencus that it cannot
be fixed (IIRC).
Really? I though perex said it could be fixed but it would not be easy.
Exactly.
Post by Lee Revell
Or was he referring to the kernel OSS emulation rather than the
userspace?
No, about oss emulation library. Unfortunately, I need a good small test
program which shows this bug. I don't play games and I have always
trouble to get quake working on my machines. Could someone take the mmap
code from an open source quake to a little utility playing a sine wave?
ok i now found out that quakeforge (www.quakeforge.net) is supporting alsa
natively.

i started it with "quake2 +set snddriver alsa +set snddevice default"
but it sounds the same as with oss emulation/aoss

when it loads i get the following output:
------- sound initialization -------
loading alsa sound output driver, ok
alsa: buffer size is 4096, 2048 samples
sound sampling rate: 44100

and then:

alsa: buffer underrun

-------------------------------------------

i recorded the sound with a microphone: http://217.84.10.72/quake2.mp3

this is my .asoundrc:

-----

pcm.dsp0 {
type plug
slave.pcm "dmixer"
}


pcm.!default {
type plug
slave.pcm "dmixer"
}


pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:1,0"
period_time 0
period_size 1024
# buffer_size 2048
# buffer_size 4096
# buffer_size 6553
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}

ctl.dmixer {
type hw
card 0
}

-----

i experimented with the buffer_size settings, but without any effect.

"aoss mpg123 foo.mp3" btw is working without a problem (yet) even with dmix
and xmms with alsa output is working too

so its probably quakeforge's fault, but is there a workaround on the alsa
side? with a special settings in .asoundrc?
Jaroslav Kysela
2004-11-25 07:47:15 UTC
Permalink
Post by Wulf Assols
ok i now found out that quakeforge (www.quakeforge.net) is supporting alsa
natively.
i started it with "quake2 +set snddriver alsa +set snddevice default"
but it sounds the same as with oss emulation/aoss
I still need a small test utility.

Jaroslav

-----
Jaroslav Kysela <***@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

Jaroslav Kysela
2004-11-24 19:10:27 UTC
Permalink
Post by Lee Revell
Post by Florian Schmidt
Post by Wulf Assols
i just tested the aoss thing with it, real problem ist still quake, which
doesnt work without aoss, and with aoss it just produces noise.
aoss mmap support is broken and it seems to be consencus that it cannot
be fixed (IIRC).
Really? I though perex said it could be fixed but it would not be easy.
Exactly.
Post by Lee Revell
Or was he referring to the kernel OSS emulation rather than the
userspace?
No, about oss emulation library. Unfortunately, I need a good small test
program which shows this bug. I don't play games and I have always
trouble to get quake working on my machines. Could someone take the mmap
code from an open source quake to a little utility playing a sine wave?

Jaroslav

-----
Jaroslav Kysela <***@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
Loading...