Changeset 2471:578cfae60a3c in roaraudio for roard/ssynth.c


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

added ssynth_note_render()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.