Changeset 5333:15e7ba78b961 in roaraudio for roard
- Timestamp:
- 12/08/11 20:05:49 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/ssynth.h
r5194 r5333 50 50 #define SSYNTH_POLY_COEFF 4 51 51 52 extern float ssynth_polys[SSYNTH_POLY_POLYMAX][SSYNTH_POLY_COEFF];53 54 52 extern struct ssynth_conf { 55 53 int enable; 56 54 } ssynth_conf; 57 58 extern struct ssynth_state {59 int stream;60 struct {61 int stage;62 char vv_down, vv_up;63 struct roar_note_octave note;64 struct roar_synth_state synth;65 struct roar_fader_state fader;66 struct roar_buffer * buf;67 } notes[SSYNTH_NOTES_MAX];68 } g_ssynth;69 55 70 56 int ssynth_init_config(void); -
roard/ssynth.c
r5301 r5333 28 28 #ifndef ROAR_WITHOUT_DCOMP_SSYNTH 29 29 30 float ssynth_polys[SSYNTH_POLY_POLYMAX][SSYNTH_POLY_COEFF] = {30 static const float ssynth_polys[SSYNTH_POLY_POLYMAX][SSYNTH_POLY_COEFF] = { 31 31 {0.300000, 0.958333, -0.550000, 0.091667}, 32 32 {0.700010, -0.083333, -0.150000, 0.033333} … … 35 35 struct ssynth_conf ssynth_conf; 36 36 37 struct ssynth_state g_ssynth; 37 struct ssynth_state { 38 int stream; 39 struct { 40 int stage; 41 char vv_down, vv_up; 42 struct roar_note_octave note; 43 struct roar_synth_state synth; 44 struct roar_fader_state fader; 45 struct roar_buffer * buf; 46 } notes[SSYNTH_NOTES_MAX]; 47 } g_ssynth; 38 48 39 49 int ssynth_init_config(void) {
Note: See TracChangeset
for help on using the changeset viewer.