Changeset 1239:bfbca4801c7b in roaraudio


Ignore:
Timestamp:
02/26/09 03:12:56 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

done the a bit cleanup

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter_vorbis.c

    r1238 r1239  
    367367  vorbis_block_init(&(self->encoder.vd), &(self->encoder.vb)); 
    368368 
    369   ROAR_WARN("cf_vorbis_encode_start(*): srn=%i", self->encoder.srn); 
     369  ROAR_DBG("cf_vorbis_encode_start(*): srn=%i", self->encoder.srn); 
    370370                                     //  "RA"<<16 + PID<<8 + Stream ID 
    371371  ogg_stream_init(&(self->encoder.os), 
    372                    ((0x5241 + self->encoder.srn)<<16) + 
    373                    ((getpid() & 0xff           )<< 8) + 
    374                    ( sid      & 0xff               )); 
     372                   (((0x5241 + self->encoder.srn) & 0xffff)<<16) + 
     373                   ( (getpid()                    & 0x00ff)<< 8) + 
     374                   (  sid                         & 0x00ff)); 
    375375 return 0; 
    376376#else 
     
    431431 switch (cmd) { 
    432432  case ROAR_CODECFILTER_CTL2CMD(ROAR_CODECFILTER_CTL_META_UPDATE): 
    433     ROAR_WARN("stoping stream..."); 
     433    ROAR_DBG("cf_vorbis_ctl(*): stoping stream..."); 
    434434    if ( cf_vorbis_encode_end(self) == -1 ) 
    435435     return -1; 
    436     ROAR_WARN("restarting stream..."); 
     436    ROAR_DBG("cf_vorbis_ctl(*): restarting stream..."); 
    437437    if ( cf_vorbis_encode_start(self) == -1 ) 
    438438     return -1; 
  • roard/streams.c

    r1238 r1239  
    382382 cmd &= ~comp; 
    383383 
    384  ROAR_WARN("streams_ctl(id=%i, cmd=?, data=%p): comp=0x%.8x, cmd=0x%.4x", id, data, comp, cmd); 
     384 ROAR_DBG("streams_ctl(id=%i, cmd=?, data=%p): comp=0x%.8x, cmd=0x%.4x", id, data, comp, cmd); 
    385385 
    386386 switch (comp) { 
Note: See TracChangeset for help on using the changeset viewer.