Changeset 5053:4542bb21d38d in roaraudio


Ignore:
Timestamp:
05/31/11 10:11:05 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

add some debug msgs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/midi.c

    r4708 r5053  
    186186 } 
    187187 
     188 ROAR_DBG("midi_check_stream(id=%i) = 0", id); 
    188189 return 0; 
    189190} 
     
    230231 
    231232 while (ss->buffer != NULL && alive) { 
     233  ROAR_DBG("midi_conv_midi2mes(id=%i): ss->buffer=%p, alive=%i", id, ss->buffer, alive); 
     234 
    232235  if ( roar_buffer_get_data(ss->buffer, &bufdata) == -1 ) { 
    233236   alive = 0; 
     
    244247 
    245248  while (have && alive) { 
     249   ROAR_DBG("midi_conv_midi2mes(id=%i): have=%llu, alive=%i", id, (long long unsigned int)have, alive); 
     250 
    246251   if ( *data & 0x80 ) { 
    247252    if ( buf != NULL ) { 
     
    353358 
    354359  if ( need ) { 
     360   ROAR_DBG("midi_conv_midi2mes(id=%i) = ?", id); 
    355361   if ( roar_buffer_set_offset(ss->buffer, old_have - last_have) == -1 ) { 
    356362    ROAR_ERR("midi_conv_midi2mes(*): FIXME: BUG!!! Need to restore buffer here with corrected length"); 
     
    523529 } 
    524530 
     531 ROAR_DBG("midi_add_buf(*) = 0"); 
    525532 return 0; 
    526533} 
Note: See TracChangeset for help on using the changeset viewer.