projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Start idle thread after the rocket leaves the pad
[fw/altos]
/
ao-tools
/
altosui
/
AltosVoice.java
diff --git
a/ao-tools/altosui/AltosVoice.java
b/ao-tools/altosui/AltosVoice.java
index c39bfb9b4694fb086df9278faad2008393663b26..ebe9d5a81c0d5c8b1cab4084db70925dc59049b8 100644
(file)
--- a/
ao-tools/altosui/AltosVoice.java
+++ b/
ao-tools/altosui/AltosVoice.java
@@
-39,7
+39,8
@@
public class AltosVoice implements Runnable {
} catch (InterruptedException e) {
}
}
} catch (InterruptedException e) {
}
}
- public void speak(String s) {
+
+ public void speak_always(String s) {
try {
if (voice != null)
phrases.put(s);
try {
if (voice != null)
phrases.put(s);
@@
-47,6
+48,11
@@
public class AltosVoice implements Runnable {
}
}
}
}
+ public void speak(String s) {
+ if (AltosPreferences.voice())
+ speak_always(s);
+ }
+
public void speak(String format, Object... parameters) {
speak(String.format(format, parameters));
}
public void speak(String format, Object... parameters) {
speak(String.format(format, parameters));
}
@@
-59,7
+65,6
@@
public class AltosVoice implements Runnable {
phrases = new LinkedBlockingQueue<String> ();
thread = new Thread(this);
thread.start();
phrases = new LinkedBlockingQueue<String> ();
thread = new Thread(this);
thread.start();
- speak("Rocket Flight Monitor Ready");
} else {
System.out.printf("Voice manager failed to open %s\n", voice_name);
Voice[] voices = voice_manager.getVoices();
} else {
System.out.printf("Voice manager failed to open %s\n", voice_name);
Voice[] voices = voice_manager.getVoices();