6 * wwviaudio - realtime playback and mixing of 16 bit signed PCM audio data.
8 * wwviaudio provides a set of functions for realtime playback and mixing
9 * of audio samples, e.g. music, sound effects, etc. as in a video game.
13 * something along these lines:
15 * if (wwviaudio_initialize_portaudio() != 0)
18 * You would probably use #defines or enums rather than bare ints...
19 * wwviaudio_read_ogg_clip(1, "mysound1.ogg");
20 * wwviaudio_read_ogg_clip(2, "mysound2.ogg");
21 * wwviaudio_read_ogg_clip(3, "mysound3.ogg");
22 * wwviaudio_read_ogg_clip(4, "mymusic.ogg");
26 * wwviaudio_play_music(4); <-- begins playing music in background, returns immediately
28 * while (program isn't done) {
30 * if (something happened)
31 * wwviaudio_add_sound(1);
32 * if (something else happened)
33 * wwviaudio_add_sound(2);
37 * wwviaudio_cancel_all_sounds();
38 * wwviaduio_stop_portaudio();
40 * License: GPL (v2 or any later version)
43 int main(int argc, char *argv[])
48 if (strcmp(argv[1], "depends") == 0) {
49 printf("ccan/ogg_to_pcm\n"
55 if (strcmp(argv[1], "libs") == 0) {