All pastes #227074 Raw Edit

Mine

public text v1 · immutable
#227074 ·published 2006-10-29 00:47 UTC
rendered paste body
Error file :

Makefile:11: Consider upgrading to GNU make 3.81+ for optimum build performance.
metronome.c: In function 'plugin_start':
metronome.c:1393: warning: passing argument 1 of 'prepare_sound' from incompatible pointer type

Here is the call....

    prepare_sound(&tickbuffer);

the declaration

    short tickbuffer[sizeof(tick_sound)*2];

and the procedure

void prepare_sound(short* soundbuffer)
{
    int i;
    for(i = 0;i < (int)sizeof(tick_sound)/2;i++) {
        soundbuffer[i*2] = tick_sound[i];
        soundbuffer[i*2+1] = tick_sound[i];
    }
}