Open
Description
Hello,
To begin, thank you very much for your work! It's a very nice peace of rust code.
I played and wrote some code here using resid-rs
.
It seems i found a sampler bug when playing soundfx number : 13, 14 and 16 (all others working):
thread 'main' panicked at 'attempt to subtract with overflow', /home/user/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/resid-rs-1.1.1/src/envelope.rs:313:25
stack backtrace:
0: rust_begin_unwind
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/panicking.rs:142:14
2: core::panicking::panic
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/panicking.rs:48:5
3: resid::envelope::EnvelopeGenerator::clock_delta
at /home/user/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/resid-rs-1.1.1/src/envelope.rs:313:25
4: resid::synth::Synth::clock_delta
at /home/user/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/resid-rs-1.1.1/src/synth.rs:95:13
5: resid::sampler::Sampler::clock_fast
at /home/user/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/resid-rs-1.1.1/src/sampler.rs:150:13
6: resid::sampler::Sampler::clock
at /home/user/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/resid-rs-1.1.1/src/sampler.rs:126:37
7: resid::sid::Sid::sample
at /home/user/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/resid-rs-1.1.1/src/sid.rs:160:9
8: robrs::rhplayer::RhPlayer::sample
at ./src/rhplayer.rs:617:5
9: robrs::main
at ./src/main.rs:61:41
10: core::ops::function::FnOnce::call_once
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/ops/function.rs:248:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Can you help? Thank you.
Metadata
Metadata
Assignees
Labels
No labels