Displaying 1 result from an estimated 1 matches for "ogg_setvolum".
Did you mean:
  ogg_setvolume
  
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 ?
...ter */
OGG_music *OGG_new(FILE *fp)
{
        OGG_music *music;int xx;
        music = (OGG_music *)malloc(sizeof *music);
        if ( music ) {
                /* Initialize the music structure */
                memset(music, 0, (sizeof *music));
                OGG_stop(music);
                OGG_setvolume(music, MIX_MAX_VOLUME);
                music->section = -1;
                if ( ov_open(fp, &music->vf, NULL, 0) < 0 ) {
                        SDL_SetError("Not an Ogg Vorbis audio stream");
                        free(music);
                        return(NULL);
.......