#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include <inttypes.h>
#define WWVIAUDIO_DEFINE_GLOBALS
#include "wwviaudio.h"
#undef WWVIAUDIO_DEFINE_GLOBALS
-#include "portaudio.h"
-#include "ccan/ogg_to_pcm/ogg_to_pcm.h"
+#include <portaudio.h>
+#include <ccan/ogg_to_pcm/ogg_to_pcm.h>
#define FRAMES_PER_BUFFER (1024)
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;
}
{
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));
}