Mercurial > hg > dmlib
view jmix_post_c.h @ 510:43ea59887c69
Start work on making C64 formats encoding possible by changing DMDecodeOps
to DMEncDecOps and adding fields and op enums for custom encode functions, renaming,
etc. Split generic op sanity checking into a separate function in
preparation for its use in generic encoding function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 19 Nov 2012 15:06:01 +0200 |
parents | 033c660c25f5 |
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 (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