All pastes #2126929 Raw Edit

Mine

public text v1 · immutable
#2126929 ·published 2012-03-11 18:33 UTC
rendered paste body
void __inline
ADD_TO_OUTPUT_BUFFER (output_word * _buf, float _ch)
{
    float tmp1;
    tmp1 = _ch + (output_word) * _buf;
    if (tmp1 > 32767.0)
        tmp1 = 32767.0;
    if (tmp1 < -32767.0)
        tmp1 = -32767.0;
     *((output_word*) _buf) = (output_word) tmp1;
}