ddb_dsp_context_t* ddb_src_open (void) { ddb_src_libsamplerate_t *src = malloc (sizeof (ddb_src_libsamplerate_t)); DDB_INIT_DSP_CONTEXT (src,ddb_src_libsamplerate_t,&plugin); src->samplerate = 44100; src->quality = 2; src->channels = -1; return (ddb_dsp_context_t *)src; }
ddb_dsp_context_t* m2s_open (void) { ddb_m2s_t *m2s = malloc (sizeof (ddb_m2s_t)); DDB_INIT_DSP_CONTEXT (m2s,ddb_m2s_t,&plugin); // initialize m2s->leftmix = 1; m2s->rightmix = 1; return (ddb_dsp_context_t *)m2s; }
ddb_dsp_context_t* st_open (void) { ddb_soundtouch_t *st = malloc (sizeof (ddb_soundtouch_t)); DDB_INIT_DSP_CONTEXT (st,ddb_soundtouch_t,&plugin); st->st = st_alloc (); st->changed = 1; st->tempo = 0; st->rate = 0; st->pitch = 0; st->use_aa_filter = 0; st->aa_filter_length = 32; st->use_quickseek = 0; st->sequence_ms = 82; st->seekwindow_ms = 28; return (ddb_dsp_context_t *)st; }
ddb_dsp_context_t* supereq_open (void) { ddb_supereq_ctx_t *supereq = malloc (sizeof (ddb_supereq_ctx_t)); DDB_INIT_DSP_CONTEXT (supereq,ddb_supereq_ctx_t,&plugin); equ_init (&supereq->state, 10, 2); supereq->paramsroot = paramlist_alloc (); supereq->last_srate = 44100; supereq->last_nch = 2; supereq->mutex = deadbeef->mutex_create (); supereq->preamp = 1; for (int i = 0; i < 18; i++) { supereq->bands[i] = 1; } recalc_table (supereq); equ_clearbuf (&supereq->state); return (ddb_dsp_context_t*)supereq; }