X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fwwviaudio%2Fwwviaudio.c;h=d6fabfbd761007ab661f120a0dc6fb16b859f78f;hb=9dbf8b3fd6fd65a59ccbb49fb9b7f0cc5cdf18d8;hp=6ce89577fd22df7a451b231e7dd4ad25f5d9ca7d;hpb=39357f4e89f4ac02eb11861812cbfc67b4f1d4ef;p=ccan diff --git a/ccan/wwviaudio/wwviaudio.c b/ccan/wwviaudio/wwviaudio.c index 6ce89577..d6fabfbd 100644 --- a/ccan/wwviaudio/wwviaudio.c +++ b/ccan/wwviaudio/wwviaudio.c @@ -29,6 +29,7 @@ #include #include #include +#include #define WWVIAUDIO_DEFINE_GLOBALS #include "wwviaudio.h" @@ -147,8 +148,8 @@ int wwviaudio_read_ogg_clip(int clipnum, char *filename) rc = ogg_to_pcm(filebuf, &clip[clipnum].sample, &samplesize, &sample_rate, &nchannels, &nframes); if (clip[clipnum].sample == NULL) { - printf("Can't get memory for sound data for %llu frames in %s\n", - nframes, filebuf); + printf("Can't get memory for sound data for %"PRIu64 + " frames in %s\n", nframes, filebuf); goto error; } @@ -226,7 +227,7 @@ static void decode_paerror(PaError rc) { if (rc == paNoError) return; - fprintf(stderr, "An error occured while using the portaudio stream\n"); + fprintf(stderr, "An error occurred while using the portaudio stream\n"); fprintf(stderr, "Error number: %d\n", rc); fprintf(stderr, "Error message: %s\n", Pa_GetErrorText(rc)); }