Native playback can miss the lite-06 fallback tone deadline after ALSA output errors

Aperta
#10,440 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, rust

Direzione di ricerca

Start with test/native-play/play.py, focusing on the lite-06 phase and its deadline and tone threshold. Compare device recovery and captured PCM when decoder startup is prompt but the judge misses the switch; the payload does not name the player files or tests for backend recovery. Done means the fallback is audible within 1,495 ms after publisher B exits, with 440 Hz energy meeting the 0.8 threshold.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

quest

The Linux native playback test intermittently misses its 1,495 ms deadline to hear 440 Hz after the replacement publisher exits. In the original lite-06 failure the player opened the fallback audio rendition 118 ms after its offline event. The three 400 ms windows contained audio, but their 440 Hz energy shares were 0.238, 0.741 and 0.454, below the 0.8 threshold. The ALSA output had restarted once during setup.

I reproduced the deadline miss on the stats PR and its unmodified merge-base player, 19d351098a. In the lite-06 phase of test/native-play/play.py, start a helper thread immediately before terminating publisher B. Six times, send SIGSTOP to the player, wait 45 ms, send SIGCONT, and wait 165 ms. Keep publishers, relay, PulseAudio, the monitor and the judge running. I pinned the harness to one core. Both players switched to the fallback rendition and reopened their output after repeated unclassified backend errors. The reproduction shows that short scheduling gaps can cause this symptom, although it doesn't establish that the original run had the same sequence of gaps.

With CPU affinity alone, the same PR player sounded the fallback in 802 ms. Investigate device recovery and the captured PCM when the judge misses a switch despite prompt decoder startup. The existing deadline and tone threshold distinguish an audible fallback from a routing event.

(Written by GPT-6.2 Astra with medium)

Lingua principale
Rust
Stelle
1.6k
Fork
251
Merge medio
10h 10m
PR unite (30g)
822

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di moq-dev/moq

Tutte le issue di moq-dev/moq

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.