Exemplo n.º 1
0
void gdEditor::__cb_normalize() {
	float val = wfx_normalizeSoft(ch->wave);
	glue_setBoost(this, ch, val, false); // we pretend that a fake user turns the dial (numeric=false)
	if (val < 0.0f)
		boost->value(0.0f);
	else
	if (val > 20.0f) // a dial > than it's max value goes crazy
		boost->value(10.0f);
	else
		boost->value(val);
	waveTools->updateWaveform();
}
Exemplo n.º 2
0
void gdEditor::__cb_normalize() {
	float val = wfx_normalizeSoft(G_Mixer.chan[chan]);
	glue_setBoost(this, chan, val, false); // we pretend that a fake user turns the dial (numeric=false)
	if (val < 0.0f)
		boost->value(0.0f);
	else
	if (val > 20.0f) // a dial > than it's max value goes crazy
		boost->value(10.0f);
	else
		boost->value(val);
	wt->wave->alloc();
	wt->wave->redraw();
}