Ejemplo n.º 1
0
// initialize with pointer to audio buffer
extern void delay_init(delayLine* dl, fract32* data, u32 frames) {
  buffer_init(&(dl->buffer), data, frames);
  buffer_tapN_init(&(dl->tapRd), &(dl->buffer));
  buffer_tapN_init(&(dl->tapWr), &(dl->buffer));
  dl->tapWr.idx = 0;
  dl->tapRd.idx = 0;
  dl->tapWr.loop = frames;
  dl->tapRd.loop = frames;

  dl->preLevel = 0;
  dl->write = 1;
}
Ejemplo n.º 2
0
// initialize with pointer to audio buffer
void delay_init(delayLine* dl, fract32* data, u32 frames) {
  buffer_init(&(dl->buffer), data, frames);
  buffer_tapN_init(&(dl->tapWr), &(dl->buffer));
  bufferTap24_8_init(&(dl->tapRd), &(dl->buffer));


  /*
  fix32 single_speed;
  single_speed.i = 1;
  single_speed.fr = 0;
  delay_set_rate(&(dl->tapRd), single_speed);
  delay_set_rate(&(dl->tapWr), single_speed);
  dl->preLevel = 0;
  dl->write = 1;
  */
}