Timing/sync problems (pops, clicks, stutters) with multiple sound cards
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
High
|
Sean M. Pappalardo | ||
1.8 |
Won't Fix
|
High
|
Unassigned | ||
1.9 |
Fix Released
|
High
|
Sean M. Pappalardo |
Bug Description
Using 1.8 branch r2661 on Debian squeeze, AMD64 kernel, Athlon64 2200MHz CPU, 1.25GB RAM and on-board nVidia nForce3 sound card (shows as Realtek in Windows,) running at 48kHz sample rate.
If I choose a second sound card (like the IEC958 version of the nVidia one) for the headphone bus and increase the latency to max (170ms,) there's a quarter-second stutter/skip in the following cadence: 2 seconds, 14 seconds, 2 seconds, 14 seconds, etc. This happens whether or not I have anything going to the headphone bus, and in both Vinyl Emulation and PITS modes and even if I unload my wireless firmware/driver (b43.) (CPUFreq and PowerNowD are present on the system but not running.)
If I hook up an additional USB sound card (Behringer UCA-202,) these skips cause the cards to be out of sync and they never quite recover because another skip happens before they can.
The skip cadence seems to be particular to each card, as the UCA-202 skips about every 16 seconds while the nVidia one skips as specified above while they're both playing.
(These skips sound like xruns at lower latencies (10~21ms.))
Related branches
- Phillip Whelan: Approve (code review)
-
Diff: 276 lines (+91/-40)4 files modifiedmixxx/src/sounddeviceportaudio.cpp (+9/-3)
mixxx/src/soundmanager.cpp (+76/-34)
mixxx/src/soundmanager.h (+5/-2)
mixxx/src/soundmanagerconfig.h (+1/-1)
description: | updated |
description: | updated |
summary: |
- Timing/sync problems with two sound cards + Timing/sync problems (pops, clicks, stutters) with two sound cards |
summary: |
- Timing/sync problems (pops, clicks, stutters) with two sound cards + Timing/sync problems (pops, clicks, stutters) with multiple sound cards |
tags: | added: glitch |
Changed in mixxx: | |
assignee: | nobody → Sean M. Pappalardo (pegasus-renegadetech) |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Changed in mixxx: | |
milestone: | none → 1.9.0 |
Changed in mixxx: | |
status: | In Progress → Fix Committed |
tags: | added: multi-soundcard |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
At 44.1kHz and 170ms latency, the nVidia card skips at about 2~3s, 15s, etc. and the UCA-202 skips at about 17~18s
At 44.1kHz and 46ms latency, the nVidia card skips at about 0~1s, 3~4s, etc. and the UCA-202 at about 4~5s.
So it's definitely latency- and sample rate-dependent as well.