Skip to contentSkip to conversation

the big jack bug... > crappy audio on XRUNS

DISCUSSION federico 4 participants 6 messages Nov 6, 2005 – Nov 7, 2005

lore
Share & tools
lore

federico

author
#0 lore raw

it happens randomly, while I play a soft synth, that jack XRUNs once, and the audio become crappy, noisy, like a kinda of digital effect....bit crusher?

then all synthesizers (all audio apps) sound the same sh*t...
i tried recording with ardour the output, and the output is clean, so I guess is a problem of sync or something that has to do with the hardware (soundcard).

in order to record this noise, i had to connect the soundcard output in its input and record it via analog in: http://xaero.ath.cx/jackbug_stereo.wav.bz2 (it is a stereo file, with the clean track panned on the left, and the dirty one on the right).

i hope it could be useful to debug the problem...
what other information I can provide useful for debug?
note that this happens with many version of alsa (1.0.9b, 1.0.10rc2, 1.0.7 or less) and with many kernels (gentoo-sources (slightly patched for speed improvement), ck-sources, ck-sources+realtime-lsm)

i hope to solve this problem, since my audio desktop is unusable as si, since audio crasher after playng for just 5 minutes :(

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#1 lore raw
Quoted 8 lines · federico

it happens randomly, while I play a soft synth, that jack XRUNs once, and the audio become crappy, noisy, like a kinda of digital effect....bit crusher?

then all synthesizers (all audio apps) sound the same sh*t... i tried recording with ardour the output, and the output is clean, so I guess is a problem of sync or something that has to do with the hardware (soundcard).

This is likely a hardware problem.

Have you reported it on alsa-devel? What card do you have?

Signature · 8 lines
  joq


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
author
#2 lore raw

Jack O'Quin ha scritto:

Quoted 15 lines
Quoted 10 lines · federico

it happens randomly, while I play a soft synth, that jack XRUNs once, and the audio become crappy, noisy, like a kinda of digital effect....bit crusher?

then all synthesizers (all audio apps) sound the same sh*t... i tried recording with ardour the output, and the output is clean, so I guess is a problem of sync or something that has to do with the hardware (soundcard).

Quoted 5 lines

This is likely a hardware problem.

Have you reported it on alsa-devel? What card do you have?

it is an Echoaudio Gina24
the problem seems to came up more frequently with lower period sizes

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#3 lore raw
Quoted 10 lines · federico
Quoted 10 lines
Quoted 9 lines

it happens randomly, while I play a soft synth, that jack XRUNs once, and the audio become crappy, noisy, like a kinda of digital effect....bit crusher?

then all synthesizers (all audio apps) sound the same sh*t... i tried recording with ardour the output, and the output is clean, so I guess is a problem of sync or something that has to do with the hardware (soundcard).

Quoted 7 lines
Quoted 5 lines

This is likely a hardware problem.

Have you reported it on alsa-devel? What card do you have?

it is an Echoaudio Gina24
the problem seems to came up more frequently with lower period sizes

It happened to me a lot of time ago before I discovered an hw quirk (irq are generated at boundaries of 32 frames) and a driver bug (buffer size was not an integer multiple of period size). After the fix, it never happened anymore. I fixed it before the driver was merged into alsa-driver. BTW, it was extremely difficult to reproduce and I never undestood exactly why alsa wasn't able to recover from such a weird state.

I need to know: sample rate, # of running substreams, period and buffer size of each substream, anything else you thing may be useful.

--
Giuliano.

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#4 lore raw
In reply to federico
Quoted 3 lines · federico

it happens randomly, while I play a soft synth, that jack XRUNs once, and the audio become crappy, noisy, like a kinda of digital effect....bit crusher?

It's probably a driver bug but could also be a PCI latency issue.

Try setpci -d CARD:ID latency_timer=40 where CARD:ID is the PCI id of the card obtained from lspci. Do this immediately after loading the driver and before playing any audio.

Lee

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#5 lore raw
Quoted 10 lines · Lee Revell
Quoted 3 lines · federico

it happens randomly, while I play a soft synth, that jack XRUNs once, and the audio become crappy, noisy, like a kinda of digital effect....bit crusher?

It's probably a driver bug but could also be a PCI latency issue.

Try setpci -d CARD:ID latency_timer=40 where CARD:ID is the PCI id of the card obtained from lspci. Do this immediately after loading the driver and before playing any audio.

No, the latency must be 192 and the driver already sets it at startup.

--
Giuliano.

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php