Skip to content

Fix panic when using linear or ZOH resampling#1

Open
BillyDM wants to merge 2 commits intoRamiHg:masterfrom
MeadowlarkDAW:master
Open

Fix panic when using linear or ZOH resampling#1
BillyDM wants to merge 2 commits intoRamiHg:masterfrom
MeadowlarkDAW:master

Conversation

@BillyDM
Copy link

@BillyDM BillyDM commented Jul 12, 2022

Currently linear and ZOH resampling causes a panic when using more than one channel because it tries to index the last_value array out-of-bounds. However, this is intended in the C version since this struct is used as a variable length array. The fix is to just use unchecked array indexing in Rust.

Also, the compiler was marking the #[no_mangle] on some of the methods as a warning, and it even mentioned this will be a hard error in future versions of the Rust compiler, so I went ahead and removed those as well.

@BillyDM
Copy link
Author

BillyDM commented Mar 14, 2023

Any chance of this being merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant