Changeset 2471:578cfae60a3c in roaraudio


Ignore:
Timestamp:
08/22/09 03:41:39 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added ssynth_note_render()

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/include/ssynth.h

    r2469 r2471  
    7373int ssynth_note_set_stage(int id, int stage); 
    7474 
     75int ssynth_note_render   (int id, void * data); 
     76 
    7577int ssynth_note_on       (struct roar_note_octave * note, char vv); 
    7678int ssynth_note_off      (struct roar_note_octave * note, char vv); 
  • roard/ssynth.c

    r2470 r2471  
    146146    continue; 
    147147 
     148   if ( ssynth_note_render(i, indbufs[curin]) == -1 ) 
     149    continue; 
     150 
    148151   curin++; 
    149152  } 
     
    239242} 
    240243 
     244int 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 
    241251int ssynth_note_on       (struct roar_note_octave * note, char vv) { 
    242252 return ssynth_note_new(note, vv); 
Note: See TracChangeset for help on using the changeset viewer.