search for: ogg_getsome

Displaying 1 result from an estimated 1 matches for "ogg_getsome".

2004 Apr 21
3
Streaming ogg from filepointer pointing to archive of many oggs. Ogg stream does not stop after end of one ogg file - what to do ?
...;music->vf, NULL, 0) < 0 ) { SDL_SetError("Not an Ogg Vorbis audio stream"); free(music); return(NULL); ..... <p>And playing the ogg: /* Read some Ogg stream data and convert it for output */ static void OGG_getsome(OGG_music *music) { int section; int len; char data[4096]; SDL_AudioCVT *cvt; len = ov_read(&music->vf, data, sizeof(data), 0, 2, 1, &section); if ( len <= 0 ) { if ( len == 0 ) { music->playin...