summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-03-15 18:21:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-03-15 18:21:07 +0100
commit2181289c0a97fbf70d49507ffc3de5aac02960b7 (patch)
tree1b4ce945a0a433b02b2d6e149e3228bd1db2e992 /utilities
parent33b86c6b6faa04b7e4aaa4b6fb2db2aa67ee85cc (diff)
blinkenrocket.py: Decrease sync time and extend comment
Diffstat (limited to 'utilities')
-rw-r--r--utilities/blinkenrocket.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utilities/blinkenrocket.py b/utilities/blinkenrocket.py
index 87af62a..d9aae92 100644
--- a/utilities/blinkenrocket.py
+++ b/utilities/blinkenrocket.py
@@ -85,8 +85,9 @@ class modem:
tmpdata.append(chr(self.hammingCalculateParity2416(ord(self.data[index]),ord(self.data[index+1]))))
self.data = tmpdata
# generate the audio itself
- # add some sync signal in front
- sound = self.silence(4096) + self.generateSyncSignal(4096)
+ # add 420ms of sync signal in front
+ # (some sound cards take a while to produce a proper output signal)
+ sound = self.generateSyncSignal(1200)
# process the data and insert sync signal every 10 bytes
for byte in self.data:
sound += self.modemcode(ord(byte))