From 32ae4d585e69cdbc53842d6c828158ef72448ab3 Mon Sep 17 00:00:00 2001 From: sahar Date: Mon, 31 Jan 2022 22:45:47 +0100 Subject: [PATCH] quieter() in UsbPlayer implemented --- src/main/java/device/UsbPlayer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/device/UsbPlayer.java b/src/main/java/device/UsbPlayer.java index dc2b8d4..c3bca62 100644 --- a/src/main/java/device/UsbPlayer.java +++ b/src/main/java/device/UsbPlayer.java @@ -25,7 +25,11 @@ public class UsbPlayer implements Device { @Override public void quieter() { - + if(Lautstaerke > 0) { + Lautstaerke -= 1; + } else { + Lautstaerke = 0; + } } @Override