Changeset 189:4a7a0460e034 in roaraudio


Ignore:
Timestamp:
07/20/08 18:17:54 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added midi_cb_update() and g_midi_cb_stoptime

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/include/midi.h

    r188 r189  
    1111#endif 
    1212 
     13#define MIDI_CB_NOOVERRIDE 0 
     14#define MIDI_CB_OVERRIDE   1 
     15 
    1316int g_console; 
     17 
     18uint32_t g_midi_cb_stoptime; 
    1419 
    1520int midi_init (void); 
     
    1823// cb = console beep 
    1924int midi_cb_play(float t, float freq, int override); 
     25int midi_cb_update (uint32_t pos); 
    2026int midi_cb_start(float freq); 
    2127int midi_cb_stop (void); 
  • roard/midi.c

    r188 r189  
    3535 
    3636int midi_cb_play(float t, float freq, int override) { 
     37/* 
     38#define MIDI_CB_NOOVERRIDE 0 
     39#define MIDI_CB_OVERRIDE   1 
     40*/ 
    3741 return -1; 
     42} 
     43 
     44int midi_cb_update (uint32_t pos) { 
     45 if ( g_midi_cb_stoptime <= pos ) 
     46  midi_cb_stop(); 
     47 
     48 return 0; 
    3849} 
    3950 
Note: See TracChangeset for help on using the changeset viewer.