is filterstack ok ?
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
#include "crapulator.h"
|
||||
#include "filterstack.h"
|
||||
|
||||
#undef DEBUG_LEVEL
|
||||
#define DEBUG_LEVEL 1
|
||||
// #undef DEBUG_LEVEL
|
||||
// #define DEBUG_LEVEL 1
|
||||
|
||||
/* -------------------------------------------------------------- */
|
||||
static FilterSlot *stack_slots;
|
||||
@@ -67,12 +67,14 @@ idx_slot++;
|
||||
return 0;
|
||||
}
|
||||
/* -------------------------------------------------------------- */
|
||||
int filterstack_list(void)
|
||||
int filterstack_list(char *txt)
|
||||
{
|
||||
int idx;
|
||||
|
||||
fprintf(stderr, "------- %-20s --------\n", txt);
|
||||
fprintf(stderr, "stack at %p, size %d, current %d\n",
|
||||
stack_slots, nbre_filters, idx_slot);
|
||||
fprintf(stderr, "idx fx# ival fval\n");
|
||||
for (idx=0; idx<idx_slot; idx++) {
|
||||
|
||||
fprintf(stderr, "%3d %3d %3d %f\n", idx,
|
||||
@@ -98,7 +100,8 @@ for (idx=0; idx<idx_slot; idx++) {
|
||||
fprintf(stderr, "%d : effect %2d on %p\n",
|
||||
idx, stack_slots[idx].numero, target);
|
||||
|
||||
foo = crapulator(target, stack_slots[idx].numero, 0.0);
|
||||
foo = crapulator(target, stack_slots[idx].numero,
|
||||
stack_slots[idx].fval);
|
||||
if (foo) {
|
||||
fprintf(stderr, "crapulator error %d\n", foo);
|
||||
return foo;
|
||||
@@ -108,3 +111,9 @@ for (idx=0; idx<idx_slot; idx++) {
|
||||
return 0;
|
||||
}
|
||||
/* -------------------------------------------------------------- */
|
||||
int load_stack_from_file(char *fname, int notused)
|
||||
{
|
||||
|
||||
return -1;
|
||||
}
|
||||
/* -------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user