Changeset 2463:4f769fd0a58b in roaraudio
- Timestamp:
- 08/21/09 19:18:22 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/ssynth.h
r2460 r2463 70 70 int ssynth_note_set_stage(int id, int stage); 71 71 72 int ssynth_note_on (struct roar_note_octave * note, char vv); 73 int ssynth_note_off (struct roar_note_octave * note, char vv); 74 72 75 int ssynth_eval_message (struct midi_message * mes); 73 76 -
roard/ssynth.c
r2460 r2463 140 140 } 141 141 142 int ssynth_note_on (struct roar_note_octave * note, char vv) { 143 return -1; 144 } 145 146 int ssynth_note_off (struct roar_note_octave * note, char vv) { 147 return -1; 148 } 149 142 150 int ssynth_eval_message (struct midi_message * mes) { 151 if ( !ssynth_conf.enable ) 152 return -1; 153 154 switch (mes->type) { 155 case MIDI_TYPE_NOTE_OFF: 156 return ssynth_note_off(&(mes->d.note), mes->vv); 157 break; 158 case MIDI_TYPE_NOTE_ON: 159 return ssynth_note_off(&(mes->d.note), mes->vv); 160 break; 161 default: 162 /* ignore all other events at the moment */ 163 return 0; 164 } 165 143 166 return -1; 144 167 }
Note: See TracChangeset
for help on using the changeset viewer.