diff options
| author | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
|---|---|---|
| committer | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
| commit | 3d92926a902017e7cf1f5738e99ff62da596ce12 (patch) | |
| tree | 2b55422c26a48759d56fa91f06df24449e9dfa88 /lib/ad_oscillator.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
refactormain
Diffstat (limited to 'lib/ad_oscillator.c')
| -rw-r--r-- | lib/ad_oscillator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ad_oscillator.c b/lib/ad_oscillator.c index 5021140..66ca3cf 100644 --- a/lib/ad_oscillator.c +++ b/lib/ad_oscillator.c @@ -31,10 +31,9 @@ int ts_ad_oscillator( { TS_PROLOGUE( ts_ad_oscillator_p ); if ( !c ) return -1; - if( n == 0 ) return -1; - fp_t fast = ((ts_ad_oscillator_params_t *)c)->fast; - fp_t slow = ((ts_ad_oscillator_params_t *)c)->slow; + fp_t fast = ((ts_ad_oscillator_params_t const *)c)->fast; + fp_t slow = ((ts_ad_oscillator_params_t const *)c)->slow; if (fast == 0 || slow == 0) return -1; fp_t a_fast = 1.0 / fast; fp_t a_slow = 1.0 / slow; |