File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 9
9
<code ><![CDATA[
10
10
#include <ladspa-util.h>
11
11
12
+ #define MIN(a,b) ((a) < (b) ? (a) : (b))
12
13
#define N_TAPS 128
13
14
14
15
typedef struct {
146
147
for (i=0; i<ntaps; i++) {
147
148
g_rand = (1.0f-gain_rand) + (float)rand() / (float)RAND_MAX * 2.0f * gain_rand;
148
149
d_rand = (1.0f-delay_rand) + (float)rand() / (float)RAND_MAX * 2.0f * delay_rand;
149
- taps[next_set][i].delay = LIMIT ((unsigned int)(delay_base + delay_sum * delay_fix * d_rand), 0 , buffer_size-1);
150
+ taps[next_set][i].delay = MIN ((unsigned int)(delay_base + delay_sum * delay_fix * d_rand), buffer_size-1);
150
151
taps[next_set][i].gain = gain * g_rand;
151
152
152
153
delay_sum += delay;
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ sub process_plugin {
206
206
if ($foo eq " callback" ) {
207
207
push (@callbacks , $tree -> [$i +1]-> [0]-> {' event' });
208
208
$callback_code {$label .' _' .$tree -> [$i +1]-> [0]-> {' event' }} = $tree -> [$i +1]-> [2];
209
- $callback_unused_vars {$label .' _' .$tree -> [$i +1]-> [0]-> {' event' }} = $tree -> [$i +1]-> [0]-> {' unused-vars' };
209
+ $callback_unused_vars {$label .' _' .$tree -> [$i +1]-> [0]-> {' event' }} = $tree -> [$i +1]-> [0]-> {' unused-vars' } // " " ;
210
210
}
211
211
if ($foo eq " port" ) {
212
212
push (@ports , &process_port($tree -> [$i +1]));
You can’t perform that action at this time.
0 commit comments