@@ -47,7 +47,7 @@ typedef struct {
47
47
48
48
// lv2 data
49
49
float * buffers [2 ];
50
- const float * controlGain ;
50
+ const float * controlLevel ;
51
51
const float * controlProgram ;
52
52
int currentProgram ;
53
53
const LV2_Atom_Sequence * events ;
@@ -59,7 +59,7 @@ typedef enum {
59
59
kPortEvents = 0 ,
60
60
kPortAudioOutL ,
61
61
kPortAudioOutR ,
62
- kPortGain ,
62
+ kPortLevel ,
63
63
kPortProgram ,
64
64
} FluidSynthPluginPorts ;
65
65
@@ -100,7 +100,7 @@ static LV2_Handle lv2_instantiate(const struct _LV2_Descriptor* descriptor, doub
100
100
if (synth == NULL )
101
101
goto cleanup_settings ;
102
102
103
- fluid_synth_set_gain (synth , 1.0f );
103
+ fluid_synth_set_level (synth , 1.0f );
104
104
fluid_synth_set_polyphony (synth , 32 );
105
105
fluid_synth_set_sample_rate (synth , (float )sampleRate );
106
106
@@ -193,8 +193,8 @@ static void lv2_connect_port(LV2_Handle instance, uint32_t port, void* dataLocat
193
193
data -> buffers [port - 1 ] = dataLocation ;
194
194
break ;
195
195
196
- case kPortGain :
197
- data -> controlGain = dataLocation ;
196
+ case kPortLevel :
197
+ data -> controlLevel = dataLocation ;
198
198
break ;
199
199
200
200
case kPortProgram :
@@ -232,7 +232,7 @@ static void lv2_run(LV2_Handle instance, uint32_t frames)
232
232
data -> needsReset = false;
233
233
}
234
234
235
- fluid_synth_set_gain (data -> synth , * data -> controlGain );
235
+ fluid_synth_set_level (data -> synth , * data -> controlLevel );
236
236
237
237
const float currentProgram_f = * data -> controlProgram ;
238
238
const int currentProgram_i = (int )(currentProgram_f + 0.5f );
0 commit comments