@@ -6348,7 +6348,7 @@ int effects_get_parameter(int effect_id, const char *control_symbol, float *valu
6348
6348
port = FindEffectInputPortBySymbol (& (g_effects [effect_id ]), control_symbol );
6349
6349
if (port )
6350
6350
{
6351
- ( * value ) = * (port -> buffer );
6351
+ * value = * (port -> buffer );
6352
6352
return SUCCESS ;
6353
6353
}
6354
6354
@@ -6369,7 +6369,8 @@ int effects_flush_parameters(int effect_id, int reset, int param_count, const fl
6369
6369
6370
6370
if (effect -> reset_index >= 0 && reset != 0 )
6371
6371
{
6372
- * (effect -> ports [effect -> reset_index ]-> buffer ) = reset ;
6372
+ port = effect -> ports [effect -> reset_index ];
6373
+ port -> prev_value = * (port -> buffer ) = reset ;
6373
6374
}
6374
6375
6375
6376
for (int i = 0 ; i < param_count ; i ++ )
@@ -6384,7 +6385,7 @@ int effects_flush_parameters(int effect_id, int reset, int param_count, const fl
6384
6385
else if (value > port -> max_value )
6385
6386
value = port -> max_value ;
6386
6387
6387
- port -> prev_value = * port -> buffer = params [i ].value ;
6388
+ port -> prev_value = * ( port -> buffer ) = params [i ].value ;
6388
6389
6389
6390
#ifdef WITH_EXTERNAL_UI_SUPPORT
6390
6391
port -> hints |= HINT_SHOULD_UPDATE ;
@@ -6395,7 +6396,8 @@ int effects_flush_parameters(int effect_id, int reset, int param_count, const fl
6395
6396
// reset a 2nd time in case plugin was processing while we changed parameters
6396
6397
if (effect -> reset_index >= 0 && reset != 0 )
6397
6398
{
6398
- * (effect -> ports [effect -> reset_index ]-> buffer ) = reset ;
6399
+ port = effect -> ports [effect -> reset_index ];
6400
+ port -> prev_value = * (port -> buffer ) = reset ;
6399
6401
}
6400
6402
6401
6403
return SUCCESS ;
@@ -6808,7 +6810,7 @@ int effects_monitor_output_parameter(int effect_id, const char *control_symbol_o
6808
6810
return SUCCESS ;
6809
6811
6810
6812
// set prev_value
6811
- port -> prev_value = ( * port -> buffer );
6813
+ port -> prev_value = * ( port -> buffer );
6812
6814
port -> hints |= HINT_MONITORED ;
6813
6815
6814
6816
// simulate an output monitor event here, to report current value
0 commit comments