On Tue, May 27, 2008 at 6:54 PM, Hannu Savolainen <[EMAIL PROTECTED]> wrote:
> You said that this problem happens wit mplayer but not with ossplay and
> osstest. Does it happen with any other audio/video player such as xmms
> or xine?

I wasn't clear. The problem happens when anything attempts to
manipulate the mixer, including ossmix and ossxmix. Mplayer was just
an example of a player that has a mixer. I also gave
gnome-volume-control as an example.

The problem (distorted sound) occurs when you modify the volume level
(AND mixer dial), for as long as you keep modifying it. It is apparent
in the PCM sound output (ie. sounds coming from players of all kinds
being played).

It doesn't affect Line-In (probably because the tuner is an old model
with an external output that comes into Line-In in the soundcard, so
there's probably no processing other than mixing.

When there's no PCM sound playing, I don't get audible distortions,
but the application currently attempting to change the mixer still
exhibits the sluggish behaviour.

What I said about ossplay and osstest was that they seem to always
ignore mixer settings and play at full volume, including the dB values
which are the only ones that seem to work in my mixer at this point.
But I still get distorted sound if ossplay or osstest are playing and
I change the mixer.

> If it happens only with mplayer then this means the bug must be in
> mplayer (which seems to have seriously broken OSS plugin).

The problem is merely manifested when a player app plays something
over PCM (any app, including ossplay). It doesn't have anything in
particular to do with any player, it's just that it affects the global
PCM sound output.

It also happens with ossplay, osstest, alsaplayer (this is what I had around).

It doesn't happen if I change volume from Rhythmbox, or from Mplayer
using SDL output. I'm suspecting the intermediate layer
(gstreamer/SDL) does software mixing. BUT it happens with them too if
I use another mixer while they're playing (even over SDL/gstreamer).

Example: I start playback in Rhythmbox or Mplayer with SDL output:
SDL_AUDIODRIVER=dsp mplayer -ao sdl:dsp -- test.wav
I change volume from within the app, it changes nicely. I change it
from outside (ossmix or any other mixer app): I get distortion each
time I move a slider.


I also tried Audacious but couldn't get it to work (got
SNDCTL_DSP_SETFMT ioctl failed: Operation not permitted), perhaps
outdated OSS API? If I ever get OSS working properly I'll have to bug
the developer into fixing that if I ever expect to use it again.

> Another good
> guess is that the problem is related with X11 or the display driver.

I've tried it into the console, no X running, no framebuffer, no video
modules loaded. Same thing happens.

> Btw, does the graphics card have a proper driver installed or does it
> use some generic (VESA/SVGA) one?

It's the latest from NVidia (it's a GeForce 4 MX), I believe:
NVIDIA-Linux-x86-96.43.05-pkg1.run
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to