Exemple #1
0
static void del_Freeverb_state(Device_state* dev_state)
{
    assert(dev_state != NULL);

    Freeverb_state* fstate = (Freeverb_state*)dev_state;

    for (int i = 0; i < FREEVERB_COMBS; ++i)
    {
        del_Freeverb_comb(fstate->comb_left[i]);
        del_Freeverb_comb(fstate->comb_right[i]);
    }
    for (int i = 0; i < FREEVERB_ALLPASSES; ++i)
    {
        del_Freeverb_allpass(fstate->allpass_left[i]);
        del_Freeverb_allpass(fstate->allpass_right[i]);
    }

    return;
}
Exemple #2
0
static void del_Freeverb_pstate(Device_state* dstate)
{
    assert(dstate != NULL);

    Freeverb_pstate* fpstate = (Freeverb_pstate*)dstate;

    for (int ch = 0; ch < 2; ++ch)
    {
        for (int i = 0; i < FREEVERB_COMBS; ++i)
            del_Freeverb_comb(fpstate->combs[ch][i]);

        for (int i = 0; i < FREEVERB_ALLPASSES; ++i)
            del_Freeverb_allpass(fpstate->allpasses[ch][i]);
    }

    memory_free(fpstate);

    return;
}