is filterstack ok ?

This commit is contained in:
2020-12-04 19:55:34 +01:00
parent 11b1d996e8
commit 8009acc0d1
3 changed files with 80 additions and 27 deletions

View File

@@ -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;
}
/* -------------------------------------------------------------- */