After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 140803 - Esound alsa support is not alsa dmix friendly
Esound alsa support is not alsa dmix friendly
Status: RESOLVED FIXED
Product: esound
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Esound Maintainers
Esound Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-22 01:40 UTC by Ryan Gammon
Modified: 2005-05-26 00:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
source (7.76 KB, patch)
2004-04-22 01:42 UTC, Ryan Gammon
none Details | Review
patch (1.05 KB, patch)
2004-04-22 01:42 UTC, Ryan Gammon
needs-work Details | Review
esd-alsa-playback-fix.diff (1.90 KB, patch)
2005-01-31 10:54 UTC, Stanislav Brabec
none Details | Review

Description Ryan Gammon 2004-04-22 01:40:51 UTC
ALSA contains a plugin called dmix, which can be used to mix multiple streams to
one hardware device.

Esound's alsa support does not work with dmix.

Attached is a version that does.

The beauty of this system is that it allows old apps (ie - with broken/old alsa
support, or no alsa support) to use esound, while new-world alsa apps can use dmix.
Comment 1 Ryan Gammon 2004-04-22 01:42:07 UTC
Created attachment 26944 [details] [review]
source
Comment 2 Ryan Gammon 2004-04-22 01:42:25 UTC
Created attachment 26945 [details] [review]
patch
Comment 3 Frederic Crozat 2004-04-22 09:47:16 UTC
It seems nice but is it really needed to add another alsa backend ?

Could you try to merge your dmix support in the audio_alsa09.c file ?

Comment 4 Ryan Gammon 2004-04-22 17:16:51 UTC
I'd be willing to do the work that allows my alsa backend to replace the old
backend.
Comment 5 Stanislav Brabec 2005-01-31 10:54:55 UTC
Created attachment 36756 [details] [review]
esd-alsa-playback-fix.diff

Patch from Takashi Iwai to fix this problem.
Comment 6 Kjartan Maraas 2005-01-31 11:49:32 UTC
Thanks for the patch. Now we just need someone to review and commit the patch :-)
Comment 7 Pierre Ossman 2005-05-18 14:21:30 UTC
This patch solves the problem for me. Please apply ASAP. I get heavy distortions
with esound and dmix. And since dmix now is on by default in alsa this gets
really annoying.
Comment 8 David Schleef 2005-05-25 23:08:52 UTC
Applied, thanks.