view jmix_post.h @ 36:f3407a58e01e

Change DMFixedPoint types and appropriate JSS functions back to using signed integers, easier than trying to get unsigned sizes etc. to work properly in audio mixing.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Sep 2012 20:41:36 +0300
parents 7908061da010
children
line wrap: on
line source

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

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

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

#undef JMIXER_NAME
#undef JMIXER_TYPE
#undef JMIXER_FUNCTION