Skip to contentSkip to conversation

2.6.0: alsa, esd, mpg123

DISCUSSION John M Flinchbaugh 3 participants 4 messages Dec 30, 2003 – Dec 31, 2003

lore
Share & tools
lore
#0 lore raw

on my debian (unstable) laptop newly running 2.6.0, i've noticed an irritating tendency for music to not pause, but instead to try to go too fast, skipping small parts of the song (fractions of a second). this results in music with regular beats sounding erratic.

i'm using gqmpeg -> mpg123-esd -> esd -> oss -> alsa (maestro3).

switching esd to use -tcp instead of -unix seems to alleviate the trouble a bit. ogg123 playing through esd doesn't seem to do it as much either.

has anyone else noted this problem and tuned it away? thanks.

Signature · 3 lines
____________________}John Flinchbaugh{______________________
| [email protected]         http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~
#1 lore raw
Quoted 6 lines · John M Flinchbaugh

on my debian (unstable) laptop newly running 2.6.0, i've noticed an irritating tendency for music to not pause, but instead to try to go too fast, skipping small parts of the song (fractions of a second). this results in music with regular beats sounding erratic.

Quoted 7 lines

i'm using gqmpeg -> mpg123-esd -> esd -> oss -> alsa (maestro3).

switching esd to use -tcp instead of -unix seems to alleviate the trouble a bit. ogg123 playing through esd doesn't seem to do it as much either.

has anyone else noted this problem and tuned it away? thanks.

Could you try this patch?

ftp://ftp.alsa-project.org/pub/kernel-patches/alsa-bk-2003-12-30.patch.gz

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

#2 lore raw
Quoted 9 lines · Jaroslav Kysela
Quoted 5 lines · John M Flinchbaugh

on my debian (unstable) laptop newly running 2.6.0, i've noticed an irritating tendency for music to not pause, but instead to try to go too fast, skipping small parts of the song (fractions of a second). this results in music with regular beats sounding erratic.

Could you try this patch? ftp://ftp.alsa-project.org/pub/kernel-patches/alsa-bk-2003-12-30.patch.gz

this patch built and the modules install just fine, but when i try to play music, i just hear garbage beeps and blips. that's with or without esd.

Signature · 3 lines
____________________}John Flinchbaugh{______________________
| [email protected]         http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~
#3 lore raw
In reply to John M Flinchbaugh

Unless esd has ever gotten fixed, esd doesn't handle errors or write() return values.

Some sound cards can't handle the flood of data and only accept so many bytes at a time. Esd does a write of 4K, only 2387 bytes (this is an example) are actually written. Esd doesn't pay attention to this and starts writing with the next 4K chunk. This leads to the skips.

On slow machines or slow kernels you don't notice this (as much), on faster stuff, it's very apparent.

For what it's worth, there is hardly any error checking at all in esd.

David

Quoted 15 lines · John M Flinchbaugh

on my debian (unstable) laptop newly running 2.6.0, i've noticed an irritating tendency for music to not pause, but instead to try to go too fast, skipping small parts of the song (fractions of a second). this results in music with regular beats sounding erratic.

i'm using gqmpeg -> mpg123-esd -> esd -> oss -> alsa (maestro3).

switching esd to use -tcp instead of -unix seems to alleviate the trouble a bit. ogg123 playing through esd doesn't seem to do it as much either.

has anyone else noted this problem and tuned it away? thanks.