Changeset 1888:f419345c1135 in roaraudio


Ignore:
Timestamp:
05/25/09 08:22:47 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

count clock tics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/midi.c

    r1885 r1888  
    474474 struct roar_buffer  * buf; 
    475475 struct midi_message * mes; 
     476 struct roar_stream_server * ss; 
    476477 unsigned int diff; 
     478 
     479 if ( streams_get(g_midi_clock.stream, &ss) == -1 ) { 
     480  ROAR_ERR("midi_clock_tick(void): Something very BAD happend: can not get stream object of my own stream!"); 
     481  g_midi_clock.stream = -1; 
     482  ROAR_WARN("midi_clock_tick(void): Disabled MIDI Clock"); 
     483  return -1; 
     484 } 
    477485 
    478486 while ( g_pos >= g_midi_clock.nt ) { 
     
    495503    return -1; 
    496504   } 
     505 
     506   ROAR_STREAM(ss)->pos = ROAR_MATH_OVERFLOW_ADD(ROAR_STREAM(ss)->pos, 1); 
    497507  } else { 
    498508   ROAR_DBG("midi_clock_tick(void): silent tick. (nt=%lu)", g_midi_clock.nt); 
Note: See TracChangeset for help on using the changeset viewer.