`SourcesQueueOutput.try_seek()` after `SourcesQueueInput.append()` fails until output is first iterated.
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
- 62/100
- Loại issue
- Lỗi
- Độ 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 with SourcesQueueOutput.try_seek() and the queue implementation in the queue module, then inspect how SourcesQueueInput.append() updates the output state. Reproduce the issue using the Rust snippet in the report, comparing seek before and after next(). Done when seeking succeeds immediately after appending a source, with a regression test covering that sequence.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm writing an application that uses Rodio to play audio from a queue, and I want users to be able to load a file (appending it to a queue) and seek on that file before playback begins. However, after appending a source to a newly created queue, calling .try_seek() on SourcesQueueOutput fails unless next() is called on it at least once. This behavior feels unintuitive, and can be awkward to work around if SourcesQueueOutput is being accessed through some other object that owns it and doesn't provide an easy way to call next() (i.e. if it had been appended to a Player, which is what my application is currently doing).
(here the code snippet I used to isolate this behavior)
use std::time::Duration;
use rodio::{ buffer::SamplesBuffer, queue::queue, math::nz };
let (tx, mut rx) = queue(false);
tx.append(SamplesBuffer::new(nz!(1), nz!(48000), vec![1.0, 1.5, 2.0]));
rx.next() // if next() is not called at least once, the assertion fails.
let result = rx.try_seek(Duration::default());
assert!(result.is_ok(), "Seek failed after append()");
- Ngôn ngữ chính
- Rust
- Star
- 2.5k
- Fork
- 338
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay 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/rodio
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 73/100
-
WavDecoder::size_hint underflows (u32 wrap, ~4.29e9) after EOF, causes multi-GB Vec::collect() allocationCó thể đã có người làm @marin-m đã nhận 4 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Silence when playing ogg filesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của RustAudio/rodio
Issue tương tự
-
bug dependencies kind:fix priority: P3 ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
shep-pm/shep#1318 · 1 bình luận ·
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 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
swc-project/swc-next#1165 ·
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 73/100
Alive24/shea-symphony#574 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày