Changeset 2471:578cfae60a3c in roaraudio
- Timestamp:
- 08/22/09 03:41:39 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/ssynth.h
r2469 r2471 73 73 int ssynth_note_set_stage(int id, int stage); 74 74 75 int ssynth_note_render (int id, void * data); 76 75 77 int ssynth_note_on (struct roar_note_octave * note, char vv); 76 78 int ssynth_note_off (struct roar_note_octave * note, char vv); -
roard/ssynth.c
r2470 r2471 146 146 continue; 147 147 148 if ( ssynth_note_render(i, indbufs[curin]) == -1 ) 149 continue; 150 148 151 curin++; 149 152 } … … 239 242 } 240 243 244 int ssynth_note_render (int id, void * data) { 245 if ( g_sa->bits != 16 ) 246 return -1; 247 248 return roar_synth_pcmout_i161(&(g_ssynth.notes[id].synth), data, ROAR_OUTPUT_BUFFER_SAMPLES); 249 } 250 241 251 int ssynth_note_on (struct roar_note_octave * note, char vv) { 242 252 return ssynth_note_new(note, vv);
Note: See TracChangeset
for help on using the changeset viewer.