sync_cycles=0,
sync_countdown=0;
- x_control=CONTROL_SCRATCH;
- y_control=CONTROL_CUTOFF;
-
lp_enable=0;
lp_reso=0.8;
lp_freq=0.3;
loop=newstate;
}
-void vtt_class :: set_controls (int x, int y)
-{
- x_control=x;
- y_control=y;
-}
-
void vtt_class :: set_mute(int newstate)
{
mute=newstate;
}
}
-#define MAGIC 0.05
-
-void vtt_class :: handle_input(int control, f_prec value)
-{
- f_prec temp;
-
- switch (control)
- {
- case CONTROL_SCRATCH:
- if (do_scratch) sp_speed.receive_input_value(value*globals.mouse_speed);
- sense_cycles=globals.sense_cycles;
- break;
-
- case CONTROL_VOLUME:
- temp=rel_volume+MAGIC*value*globals.mouse_speed;
- if (temp>2.0) temp=2.0;
- else if (temp<0) temp=0;
- sp_volume.receive_input_value(temp);
- break;
-
- case CONTROL_CUTOFF:
- temp=lp_freq+MAGIC*value*globals.mouse_speed;
- if (temp>0.99) temp=0.99;
- else if (temp<0) temp=0;
- sp_lp_freq.receive_input_value(temp);
- break;
-
- case CONTROL_FEEDBACK:
- temp=ec_feedback+MAGIC*value*globals.mouse_speed;
- if (temp>1.0) temp=1.0;
- else if (temp<0) temp=0;
- sp_ec_feedback.receive_input_value(temp);
- break;
- }
-}
void vtt_class :: unfocus()
{
int vtt_class :: load_10(FILE * input)
{
int res=0;
+ int obsolete_int;
atload(name);
atload(filename);
atload(loop);
atload(mute);
- atload(x_control);
- atload(y_control);
+ atload(obsolete_int); //x_control
+ atload(obsolete_int); //y_control
atload(lp_enable);
atload(lp_gain);
int res=0;
guint32 pid;
int32_t gui_page;
+ int obsolete_int;
atload(name);
atload(filename);
atload(loop);
atload(mute);
- atload(x_control);
- atload(y_control);
+ atload(obsolete_int); //x_control
+ atload(obsolete_int); //y_control
atload(lp_enable);
atload(lp_gain);