|
@ -5,12 +5,14 @@ public class UsbPlayer implements Device{ |
|
|
private int Lautstaerke = 0; |
|
|
private int Lautstaerke = 0; |
|
|
|
|
|
|
|
|
public void setLautstaerke(int ls) { |
|
|
public void setLautstaerke(int ls) { |
|
|
if(Lautstaerke < 100) { |
|
|
|
|
|
Lautstaerke += 1; |
|
|
|
|
|
} else { |
|
|
|
|
|
Lautstaerke = 100; |
|
|
|
|
|
} } |
|
|
|
|
|
public int getLautstaerke(){return Lautstaerke;} |
|
|
|
|
|
|
|
|
if (ls <= 100) { |
|
|
|
|
|
Lautstaerke = ls; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getLautstaerke() { |
|
|
|
|
|
return Lautstaerke; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void louder() { |
|
|
public void louder() { |
|
|