Changeset 2643:18137627e3f6 in roaraudio


Ignore:
Timestamp:
09/12/09 02:30:00 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

new debug lions

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_ops.c

    r1284 r2643  
    4242 ssize_t done = 0; 
    4343 
     44 ROAR_DBG("roar_vio_copy_data(out=%p, in=%p) = ?", out, in); 
     45 
    4446 if ( out == NULL || in == NULL ) 
    4547  return -1; 
     
    5052 
    5153  done += len; 
     54  ROAR_DBG("roar_vio_copy_data(out=%p, in=%p): len=%li, done=%li", out, in, (long int)len, (long int)done); 
    5255 } 
    5356 
     57 ROAR_DBG("roar_vio_copy_data(out=%p, in=%p): len=%li, done=%li", out, in, (long int)len, (long int)done); 
     58 
     59 ROAR_DBG("roar_vio_copy_data(out=%p, in=%p) = %li", out, in, (long int)done); 
    5460 return done; 
    5561} 
  • libroardsp/transcode.c

    r2637 r2643  
    137137  return -1; 
    138138 
     139 ROAR_DBG("roar_xcoder_proc_packet(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 
     140 
    139141 if ( state->encode ) { 
    140142  _CHECK_BASIC(encode); 
     143  ROAR_DBG("roar_xcoder_proc_packet(state=%p, buf=%p, len=%lu) = ? // _CHECK_BASIC(encode) -> OK", state, buf, (unsigned long)len); 
    141144  return _FUNC(encode)(state, buf, len); 
    142145 } else { 
    143146  _CHECK_BASIC(decode); 
     147  ROAR_DBG("roar_xcoder_proc_packet(state=%p, buf=%p, len=%lu) = ? // _CHECK_BASIC(decode) -> OK", state, buf, (unsigned long)len); 
    144148  return _FUNC(decode)(state, buf, len); 
    145149 } 
     
    152156 size_t               curlen; 
    153157 
     158 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 
     159 
    154160 if ( state == NULL ) 
    155161  return -1; 
     
    162168   return -1; 
    163169 
     170 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 
     171 
    164172 if ( state->packet_len == 0 ) 
    165173  return roar_xcoder_proc_packet(state, buf, len); 
    166174 
     175 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu): state->packet_len=%li", state, buf, (unsigned long)len, (long int) state->packet_len); 
     176 
    167177 if ( state->iobuffer == NULL ) { 
    168178  while ( len >= state->packet_len ) { 
    169    if ( roar_xcoder_proc_packet(state, buf, state->packet_len) == -1 ) 
    170     return -1; 
     179   if ( roar_xcoder_proc_packet(state, buf, state->packet_len) == -1 ) { 
     180    ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = -1 // roar_xcoder_proc_packet() error", state, buf, (unsigned long)len); 
     181    return -1; 
     182   } 
    171183 
    172184   buf += state->packet_len; 
     
    174186  } 
    175187 
    176   if ( !len ) 
     188  if ( !len ) { 
     189   ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = 0", state, buf, (unsigned long)len); 
    177190   return 0; 
     191  } 
     192 
     193  ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 
    178194 
    179195  if ( state->encode ) { 
  • libroardsp/transcode_mualaw.c

    r2186 r2643  
    4646 size_t buflen; 
    4747 
     48 ROAR_DBG("provide_buffer(*) = ?"); 
     49 
    4850 if ( bufbuf != NULL ) { 
    4951  if ( roar_buffer_get_len(bufbuf, &buflen) == -1 ) 
     
    5456    return -1; 
    5557 
     58   ROAR_DBG("provide_buffer(*) = 0"); 
    5659   return 0; 
    5760  } else { 
     
    6770  return -1; 
    6871 
     72 ROAR_DBG("provide_buffer(*) = 0"); 
    6973 return 0; 
    7074} 
     
    7377 _CHECK_BUF(len); 
    7478 
     79 ROAR_DBG("roar_xcoder_alaw_encode(*) = ?"); 
     80 
    7581 if ( roardsp_conv_pcm162alaw(iobuf, buf, outbyte) == -1 ) 
    7682  return -1; 
     83 
     84 ROAR_DBG("roar_xcoder_alaw_encode(*) = ?"); 
    7785 
    7886 _SEND_RETURN(); 
Note: See TracChangeset for help on using the changeset viewer.