SpatialPlayer does not work with set_speed and looped decoder
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- rust
调研方向
Start by reproducing the reported noise with the provided SpatialPlayer and looped Decoder example, then compare it with the normal Player and repeat_infinite() cases. The issue names no source files or tests, so first trace set_speed and looped decoder handling to their implementation and tests. Done means identifying and fixing the cause so changing playback speed works without noise, with a regression test covering the reported case.
由索引模型根据 Issue 内容生成。
描述
When using a SpatialPlayer the engine sound makes weird noises when the player speed is changed.
This issue does not occur on any playbackspeed when using a normal player/sink.
fn main() {
let stream_handle = rodio::DeviceSinkBuilder::open_default_sink().unwrap();
let player = rodio::SpatialPlayer::connect_new(
stream_handle.mixer(),
[0.0; 3],
[0.0, -1.0, 0.0],
[0.0, 1.0, 0.0]
);
// let player = rodio::Player::connect_new(stream_handle.mixer());
let file = std::fs::File::open("assets/engine.mp3").unwrap();
let source = rodio::Decoder::new_looped(file).unwrap();
player.append(source);
player.set_speed(1.5);
player.sleep_until_end();
}
I tried let source = rodio::Decoder::try_from(file).unwrap().repeat_infinite(); instead but it made the sound even worse.
What can i do to fix this, or is this an Issue of the crate itself.
Thank you for your help.
Rodio: 22.2, Windows 11
engine.mp3
- 主要语言
- Rust
- 星标
- 2.5k
- 派生
- 338
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RustAudio/rodio 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 1/5 1 小时以内 新手友好度 73/100
-
难度 3/5 1-2 天 新手友好度 62/100
-
WavDecoder::size_hint underflows (u32 wrap, ~4.29e9) after EOF, causes multi-GB Vec::collect() allocation可能已有人在做 @marin-m 于 4 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 45/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
memory_patch_page drops the `#` of headings like `## Notes on C#`可能已有人在做 @viniciusdsandrade 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
akitaonrails/ai-memory#1859 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
wealthfolio/wealthfolio#2376 ·
维护者通常 1 天内回复
-
kind/bug kind/security
难度 2/5 1-3 小时 新手友好度 82/100
spiceai/spiceai#15826 · 1 条评论 ·
维护者通常 1 天内回复
-
area:cli bug dotnet good first issue priority:medium
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复