Remove duplicate information from duplex callbacks
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- audio-video-rtc
Hướng nghiên cứu
Start by locating DuplexCallbackInfo, CallbackInfo, and StreamTimestamp::callback, then trace the duplex callback data flow and their dependencies on #1437. Confirm that the refactor leaves one callback timestamp, one xrun, and one shared data length, potentially using a separate duplex data struct with distinct input and output pointers. No specific files or tests are named in the issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
DuplexCallbackInfois composed of 2CallbackInfos, which means it contains 2 distinctStreamTimestamp::callbackvalues. But duplex streams use a single shared data callback, so there is only 1 callback timestamp to record. This doesn't apply to the device timestamp, as the output one is merely a prediction based on latency (which I think should be exposed separately, but that's another topic).- Having 2 distinct
xrunvalues is pointless, as a disjoint xrun would be, well, disjoint, but the whole point of duplex streams is making this impossible. - Duplex callbacks take 2 distinct
Dataparameters, each with its ownlen. These being distinct from one another would again defeat the essence of a duplex stream, so there should only be 1len.
If we follow through with #1437, then we could simply remove As for the 3rd point, I suggest adding a struct like this:DuplexCallbackInfo and use the regular CallbackInfo in its place.
struct DuplexData {
input: *const (),
output: *mut (),
len: usize,
input_format: SampleFormat,
output_format: SampleFormat,
}
- Ngôn ngữ chính
- Rust
- Star
- 4k
- Fork
- 554
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RustAudio/cpal
-
API design
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
correctness
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
aaudio: dynamic buffer tuning never grows the buffer (set_buffer_size_in_frames reports Err on success)Có thể đã có người làm @dannyward630 đã nhận 39 ngày trước. Đang mởhost - aaudio platform - android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
-
WebAudio wasm build fails with wasm-bindgen panic=unwind closuresCó thể đã có người làm @bogusyogi đã nhận 48 ngày trước. Đang mởhost - webaudio platform - web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
PipeWire: dropping callback captures on the realtime worker can terminate the process with SIGXCPUĐang mởhost - pipewire platform - linux
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của RustAudio/cpal
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: migrate pinned macos-15 runners to macos-26 and macos-26-intelCó thể đã có người làm @hawkingrei đã nhận hôm nay. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
nowledge-co/hawdb#2224 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Effective coverage reads function totals as line totals when the LLVM report has no branchesĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
eclipse-score/coverage_tool#95 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug nvim
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100