Skip to content

Commit

Permalink
Merge pull request #17 from monkeydom/pr/fix-crash-on-playback
Browse files Browse the repository at this point in the history
Fix: playback crashed with index out of bounds.
  • Loading branch information
chaosprint authored Jul 4, 2024
2 parents d010b9e + be3cecf commit f4d8d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub fn play_audio(file_path: &str, device: &str, jack: bool) -> Result<()> {
}

// TODO: should be able to play any chan file in any chan system
if sys_chan == 2 && num_channels == 1 {
for i in num_channels..sys_chan {
file_data.push(file_data[0].clone());
}

Expand Down

0 comments on commit f4d8d81

Please sign in to comment.