Skip to content

Commit 6d73eb0

Browse files
committed
added compositing implementation for rust
1 parent a7fa593 commit 6d73eb0

8 files changed

Lines changed: 2711 additions & 61 deletions

File tree

rust/dithertools-core/src/audio.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,7 @@ fn load_with_symphonia(path: &Path) -> Result<AudioTrack> {
213213
let mut planar: Vec<Vec<f32>> = vec![Vec::new(); n_channels];
214214
let mut sample_buf: Option<SampleBuffer<f32>> = None;
215215

216-
loop {
217-
let packet = match fmt.next_packet() {
218-
Ok(p) => p,
219-
Err(_) => break,
220-
};
216+
while let Ok(packet) = fmt.next_packet() {
221217
if packet.track_id() != track_id {
222218
continue;
223219
}

0 commit comments

Comments
 (0)