Changeset 5333:15e7ba78b961 in roaraudio for roard/ssynth.c


Ignore:
Timestamp:
12/08/11 20:05:49 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

cleanup and usage of const

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/ssynth.c

    r5301 r5333  
    2828#ifndef ROAR_WITHOUT_DCOMP_SSYNTH 
    2929 
    30 float ssynth_polys[SSYNTH_POLY_POLYMAX][SSYNTH_POLY_COEFF] = { 
     30static const float ssynth_polys[SSYNTH_POLY_POLYMAX][SSYNTH_POLY_COEFF] = { 
    3131       {0.300000,  0.958333, -0.550000,  0.091667}, 
    3232       {0.700010, -0.083333, -0.150000,  0.033333} 
     
    3535struct ssynth_conf ssynth_conf; 
    3636 
    37 struct ssynth_state g_ssynth; 
     37struct 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; 
    3848 
    3949int ssynth_init_config(void) { 
Note: See TracChangeset for help on using the changeset viewer.