SpatialPlayer does not work with set_speed and looped decoder
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- audio-video-rtc
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 2.5k
- Fork
- 338
- Merge medio
- 1g 3h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 RustAudio/rodio
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 73/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
-
WavDecoder::size_hint underflows (u32 wrap, ~4.29e9) after EOF, causes multi-GB Vec::collect() allocationForse già presa @marin-m l’ha presa 3 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Tutte le issue di RustAudio/rodio
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mozilla-services/syncstorage-rs#2715 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
physicsdolphin/nv-uefi-unlocker#53 · 4 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
area/desktop-shell
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
yantrikos/yantrik-os#1012 ·
I maintainer di solito rispondono entro 1 giorno