Changeset 5416:4a05bf454b4e in roaraudio for roard


Ignore:
Timestamp:
02/20/12 19:55:48 (8 years ago)
Author:
phi
Branch:
default
Message:

use debug code only #ifdef DEBUG.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/midi.c

    r5381 r5416  
    802802 struct midi_message * mes; 
    803803 struct roar_stream_server * ss; 
     804#ifdef DEBUG 
    804805 unsigned int diff; 
     806#endif 
    805807 
    806808 if ( streams_get(g_midi_clock.stream, &ss) == -1 ) { 
     
    812814 
    813815 while ( g_pos >= g_midi_clock.nt ) { 
     816#ifdef DEBUG 
    814817  diff = g_pos - g_midi_clock.nt; 
    815818  ROAR_DBG("midi_clock_tick(void): g_pos is %u samples (%5.2f%%) after of nt.", diff, (float)diff/g_midi_clock.spt); 
     819#endif 
    816820 
    817821  g_midi_clock.nt   = ROAR_MATH_OVERFLOW_ADD(g_midi_clock.nt, g_midi_clock.spt); 
Note: See TracChangeset for help on using the changeset viewer.