view minijss/jmix_post_c.h @ 2576:812b16ee49db

I had been living under apparent false impression that "realfft.c" on which the FFT implementation in DMLIB was basically copied from was released in public domain at some point, but it could very well be that it never was. Correct license is (or seems to be) GNU GPL. Thus I removing the code from DMLIB, and profusely apologize to the author, Philip Van Baren. It was never my intention to distribute code based on his original work under a more liberal license than originally intended.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Mar 2022 16:32:50 +0200
parents b52905e2788e
children
line wrap: on
line source

/*
 * miniJSS - Post-processing routine template
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2005-2015 Tecnic Software productions (TNSP)
 */

#ifdef JMIXER_HEADER
void JMIXER_NAME (JMIXER_ADDBUF_TYPE *, void *, const int);
#else
void JMIXER_NAME (JMIXER_ADDBUF_TYPE *addBuffer, void *mixBuffer, const int mixLength)
{
    int strideLength = mixLength;
    JMIXER_ADDBUF_TYPE *ap = addBuffer, t;
    JMIXER_TYPE *sp = (JMIXER_TYPE *) mixBuffer;

    while (strideLength--)
    {
        t = *(ap++);
        JMIXER_CLAMP
        JMIXER_FUNCTION
    }
}
#endif

#undef JMIXER_NAME
#undef JMIXER_TYPE
#undef JMIXER_FUNCTION