You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
292 B
22 lines
292 B
10 years ago
|
package mightypork.gamecore.audio;
|
||
|
|
||
|
|
||
|
import mightypork.utils.math.Calc;
|
||
|
import mightypork.utils.objects.Mutable;
|
||
|
|
||
|
|
||
|
public class Volume extends Mutable<Double> {
|
||
|
|
||
|
public Volume(Double d) {
|
||
|
super(d);
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public void set(Double d)
|
||
|
{
|
||
|
super.set(Calc.clampd(d, 0, 1));
|
||
|
}
|
||
|
|
||
|
}
|