Changeset 744:ad382e33d5d0 in roaraudio


Ignore:
Timestamp:
09/05/08 01:01:00 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

got it working, need cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter_vorbis.c

    r743 r744  
    4444 ROAR_WARN("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p): r=%i", ptr, size, nmemb, datasource, r); 
    4545 
     46 errno = 0; 
     47 
    4648 if ( r == -1 ) 
    4749  return 0; 
     
    4951 if ( r > 0 ) 
    5052  errno = 0; 
     53 
     54 r /= size; 
    5155  
    52  return r/nmemb; 
     56 ROAR_WARN("cf_vorbis_vfvio_read(ptr=%p, size=%lu, nmemb=%lu, datasource=%p) = %i", ptr, size, nmemb, datasource, r); 
     57 return r; 
    5358} 
    5459 
     
    237242 self->opened++; 
    238243 if ( self->opened == 16 ) { 
     244 
    239245  //printf("cf_vorbis_read(*): opening...\n"); 
    240246//int ov_open_callbacks(void *datasource, OggVorbis_File *vf, char *initial, long ibytes, ov_callbacks callbacks); 
     
    258264 while (todo) { 
    259265  r = ov_read(&(self->vf), buf+done, todo, 0, 2, 1, &(self->current_section)); 
    260   if ( r < 1 ) { 
     266  if ( r == OV_HOLE ) { 
     267   ROAR_WARN("cf_vorbis_read(*): Hole in stream"); 
     268  } else if ( r < 1 ) { 
    261269   break; 
    262270  } else { 
     
    271279 } 
    272280 
    273  //printf("ov_read(*) = %i\n", done); 
     281//printf("ov_read(*) = %i\n", done); 
    274282 
    275283 if ( done == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.