forked from j62/ctbrec
1
0
Fork 0

Remove playback of sound with notification

This commit is contained in:
0xboobface 2018-12-08 13:06:24 +01:00
parent 2dc5fd4581
commit f7dfabb898
1 changed files with 0 additions and 3 deletions

View File

@ -16,7 +16,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import ctbrec.io.StreamRedirectThread; import ctbrec.io.StreamRedirectThread;
import javafx.scene.media.AudioClip;
public class OS { public class OS {
@ -115,8 +114,6 @@ public class OS {
}); });
new Thread(new StreamRedirectThread(p.getInputStream(), System.out)).start(); new Thread(new StreamRedirectThread(p.getInputStream(), System.out)).start();
new Thread(new StreamRedirectThread(p.getErrorStream(), System.err)).start(); new Thread(new StreamRedirectThread(p.getErrorStream(), System.err)).start();
AudioClip clip = new AudioClip(OS.class.getResource("/Oxygen-Im-Highlight-Msg.mp3").toString());
clip.play();
} catch (IOException e1) { } catch (IOException e1) {
LOG.error("Notification failed", e1); LOG.error("Notification failed", e1);
} }