@@ -46,12 +46,12 @@ namespace FluidS {
46
46
* - dsp_buf: Output buffer of floating point values (FLUID_BUFSIZE in length)
47
47
*/
48
48
49
- void updateAmpInc (unsigned int &nextNewAmpInc,std::map<int , struct VolEnvValSection >::iterator &curSample2AmpInc, qreal &dsp_amp_incr, unsigned int dsp_i)
49
+ inline void updateAmpInc (unsigned int &nextNewAmpInc,std::map<int , qreal >::iterator &curSample2AmpInc, qreal &dsp_amp_incr, unsigned int dsp_i)
50
50
{
51
51
if (dsp_i >= nextNewAmpInc) {
52
52
curSample2AmpInc++;
53
53
nextNewAmpInc = curSample2AmpInc->first ;
54
- dsp_amp_incr = curSample2AmpInc->second . val ;
54
+ dsp_amp_incr = curSample2AmpInc->second ;
55
55
}
56
56
}
57
57
@@ -133,7 +133,7 @@ int Voice::dsp_float_interpolate_none(unsigned n)
133
133
float *dsp_buf = voice->dsp_buf ;
134
134
float dsp_amp = voice->amp ;
135
135
auto curSample2AmpInc = Sample2AmpInc.begin ();
136
- qreal dsp_amp_incr = curSample2AmpInc->second . val ;
136
+ qreal dsp_amp_incr = curSample2AmpInc->second ;
137
137
unsigned int nextNewAmpInc = curSample2AmpInc->first ;
138
138
unsigned int dsp_i = 0 ;
139
139
unsigned int dsp_phase_index;
@@ -200,7 +200,7 @@ int Voice::dsp_float_interpolate_linear(unsigned n)
200
200
float *dsp_buf = voice->dsp_buf ;
201
201
float dsp_amp = voice->amp ;
202
202
auto curSample2AmpInc = Sample2AmpInc.begin ();
203
- qreal dsp_amp_incr = curSample2AmpInc->second . val ;
203
+ qreal dsp_amp_incr = curSample2AmpInc->second ;
204
204
unsigned int nextNewAmpInc = curSample2AmpInc->first ;
205
205
unsigned int dsp_i = 0 ;
206
206
unsigned int dsp_phase_index;
@@ -293,7 +293,7 @@ int Voice::dsp_float_interpolate_4th_order(unsigned n)
293
293
Phase dsp_phase_incr; // end_phase;
294
294
short int * dsp_data = sample->data ;
295
295
auto curSample2AmpInc = Sample2AmpInc.begin ();
296
- qreal dsp_amp_incr = curSample2AmpInc->second . val ;
296
+ qreal dsp_amp_incr = curSample2AmpInc->second ;
297
297
unsigned int nextNewAmpInc = curSample2AmpInc->first ;
298
298
unsigned int dsp_i = 0 ;
299
299
unsigned int dsp_phase_index;
@@ -439,7 +439,7 @@ int Voice::dsp_float_interpolate_7th_order(unsigned n)
439
439
float *dsp_buf = voice->dsp_buf ;
440
440
float dsp_amp = voice->amp ;
441
441
auto curSample2AmpInc = Sample2AmpInc.begin ();
442
- qreal dsp_amp_incr = curSample2AmpInc->second . val ;
442
+ qreal dsp_amp_incr = curSample2AmpInc->second ;
443
443
unsigned int nextNewAmpInc = curSample2AmpInc->first ;
444
444
unsigned int dsp_i = 0 ;
445
445
unsigned int dsp_phase_index;
0 commit comments