New include guard in seq_event.h breaks DSSI header
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 12/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- c, linux
- Ambito
- audio-video-rtc
Direzione di ricerca
Start with the include guard added to alsa/seq_event.h and the #include <alsa/asoundlib.h> it falls back to, then read how the external DSSI header dssi.h uses the event structure. The open question is whether seq_event.h can be used without pulling in the rest of ALSA, which is a maintainer design decision, not a code fix. Done means a maintainer chooses an approach and the header compiles cleanly under -Werror.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello! I am one of the original authors of DSSI, a soft-synth API that was created about 20 years ago. It's not an active project, it was basically "done" by about 2011 but is still used in a number of applications.
The DSSI header dssi.h includes <alsa/seq_event.h> in order to pick up a structure for MIDI-like events.
I see that following a report of breakage in #431, a guard was added to seq_event.h in ea8972c to warn against including that header directly. This of course breaks for packagers using -Werror builds and the like.
The official fix seems to be to include the whole of <alsa/asoundlib.h>, and that is what packagers appear to be patching the DSSI header with currently (and I see it is also what the guard does itself after emitting the warning). Unfortunately from the perspective of DSSI as an API, that isn't really a fix at all because all we need is an event structure - there is no other dependency on ALSA as a library and there was never any intention to require linking with ALSA.
Probably the historical error was to use an ALSA header at all, and the best option for us might be to duplicate enough of the contents of seq_event.h locally to sever the dependency that way. But that would be a significant intervention at this point - I think it would be the first substantive change to dssi.h since 2004 so I am wary of the risks in terms of breaking other things.
I thought I should first check whether you can suggest a better approach, for example whether you might be open to making it possible (again) to make use of seq_event.h specifically without pulling in a dependency on everything else in ALSA.
Thank you!
- Lingua principale
- C
- Stelle
- 501
- Fork
- 227
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di alsa-project/alsa-lib
-
USB-Audio: ASUS ROG Zenith II S/PDIF output mapped to wrong PCM deviceForse già presa @byrcolin l’ha presa 49 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
alsa-project/alsa-lib#532 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
alsa-project/alsa-lib#530 · 9 reazioni ·
-
kernel driver
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
alsa-project/alsa-lib#529 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
alsa-project/alsa-lib#522 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
alsa-project/alsa-lib#519 ·
Tutte le issue di alsa-project/alsa-lib
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
fastfetch-cli/fastfetch#2780 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elliotchance/vsql#2079 ·
I maintainer di solito rispondono entro 1 giorno
-
docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
I maintainer di solito rispondono entro 13 giorni
-
threadpool: a failed `pthread_cond_wait` makes Mlucas hang instead of stoppingForse già presa @leinardi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
primesearch/Mlucas#398 ·