forked from j62/ctbrec
Remove playback of sound with notification
This commit is contained in:
parent
2dc5fd4581
commit
f7dfabb898
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue