Changeset 396:97fac0a6c84c in roaraudio for roard/codecfilter_speex.c


Ignore:
Timestamp:
08/07/08 01:13:45 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

replaced one non working code with another

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter_speex.c

    r395 r396  
    7474 int ret = 0; 
    7575 
     76 ROAR_WARN("cf_speex_read(inst=%p, buf=%p, len=%i) = ?", inst, buf, len); 
     77 
    7678 if ( ! self->decoder ) { 
    7779  ROAR_DBG("cf_speex_read(*): no decoder, starting one!"); 
     
    113115 } 
    114116 
    115  ROAR_WARN("cf_speex_read(*): Have a working decoder!"); 
     117 ROAR_DBG("cf_speex_read(*): Have a working decoder!"); 
    116118 
    117  ROAR_WARN("cf_speex_read(*): frame_size=%i (%i bytes)", self->frame_size, self->frame_size*2); 
    118  ROAR_WARN("cf_speex_read(*): i_rest is %i bytes after cd", self->i_rest - self->cd); 
     119 ROAR_DBG("cf_speex_read(*): frame_size=%i (%i bytes)", self->frame_size, self->frame_size*2); 
     120 ROAR_DBG("cf_speex_read(*): i_rest is %i bytes after cd", ((void*)self->i_rest - (void*)self->cd)); 
    119121 
    120122 
     
    127129   memcpy(buf, self->i_rest, self->fi_rest); 
    128130   buf += self->fi_rest; 
     131   still_todo -= self->fi_rest/2; 
     132   ret += self->fi_rest; 
    129133   self->fi_rest = 0; 
    130134  } 
     
    163167 } 
    164168 
     169 if ( still_todo ) { 
     170  ROAR_WARN("cf_speex_read(*): could not read all reqquested data, returning %i byte less", still_todo*2); 
     171 } 
     172 
     173 ROAR_WARN("cf_speex_read(*) = %i", ret); 
     174 
    165175 return ret; 
    166176} 
Note: See TracChangeset for help on using the changeset viewer.