New include guard in seq_event.h breaks DSSI header

Đang mở
#455 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, linux
Lĩnh vực
audio-video-rtc

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!

Ngôn ngữ chính
C
Star
501
Fork
227
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của alsa-project/alsa-lib

Tất cả issue của alsa-project/alsa-lib

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.