All pastes #227088 Raw Edit

petur

public text v1 · immutable
#227088 ·published 2006-10-29 01:00 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[0]);

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++ = tick_sound[i];
        *soundbuffer++ = tick_sound[i];
    }
}