diff options
| -rw-r--r-- | veejay-current/veejay-server/configure.ac | 4 | ||||
| -rw-r--r-- | veejay-current/veejay-server/veejay/vj-perform.c | 12 |
2 files changed, 5 insertions, 11 deletions
diff --git a/veejay-current/veejay-server/configure.ac b/veejay-current/veejay-server/configure.ac index 80e8cc3..95fddca 100644 --- a/veejay-current/veejay-server/configure.ac +++ b/veejay-current/veejay-server/configure.ac @@ -1,12 +1,12 @@ dnl Process this file with autoconf to produce a configure script. dnl AC_INIT -AC_INIT([veejay],[1.5.17],[[email protected]]) +AC_INIT([veejay],[1.5.18],[[email protected]]) AC_PREREQ(2.57) AC_CONFIG_SRCDIR([veejay/veejay.c]) VEEJAY_MAJOR_VERSION=1 VEEJAY_MINOR_VERSION=5 -VEEJAY_MICRO_VERSION=17 +VEEJAY_MICRO_VERSION=18 VEEJAY_VERSION=$VEEJAY_MAJOR_VERSION.$VEEJAY_MINOR_VERSION.$VEEJAY_MICRO_VERSION VEEJAY_CODENAME="Veejay Classic - build $VEEJAY_MINOR_VERSION $VEEJAY_MICRO_VERSION" AC_CONFIG_HEADERS([config.h]) diff --git a/veejay-current/veejay-server/veejay/vj-perform.c b/veejay-current/veejay-server/veejay/vj-perform.c index 729b7b7..0c8950f 100644 --- a/veejay-current/veejay-server/veejay/vj-perform.c +++ b/veejay-current/veejay-server/veejay/vj-perform.c @@ -1605,12 +1605,9 @@ int vj_perform_fill_audio_buffers(veejay_t * info, uint8_t *audio_buf, uint8_t * vj_perform_reverse_audio_frame(info, n_samples, sambuf ); int sc = n_frames - 2; -#ifdef STRICT_CHECKING - assert( sc >= 0 ); - assert( sc <= MAX_SPEED ); -#else + + //@ clip sc into range, there isn't a resampler for every speed if( sc < 0 ) sc = 0; else if ( sc > MAX_SPEED ) sc = MAX_SPEED; -#endif n_samples = audio_resample( resample_context[sc],audio_buf, sambuf, n_samples ); } @@ -1646,10 +1643,7 @@ int vj_perform_fill_audio_buffers(veejay_t * info, uint8_t *audio_buf, uint8_t * if( cur_sfd == 0 ) { int sc = max_sfd - 2; -#ifdef STRICT_CHECKING - assert(sc>=0); - assert(sc <= MAX_SPEED ); -#endif + if( sc < 0 ) sc = 0; else if ( sc > MAX_SPEED ) sc = MAX_SPEED; // @ resample buffer n_samples = audio_resample( downsample_context[ sc ], |

