aboutsummaryrefslogtreecommitdiff
path: root/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'client.py')
-rw-r--r--client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.py b/client.py
index 2d1ab40..1680017 100644
--- a/client.py
+++ b/client.py
@@ -355,7 +355,7 @@ while True:
elif pkt.cmd == CMD.PLAY:
dur = pkt.data[0]+pkt.data[1]/1000000.0
FREQ = pkt.data[2]
- AMP = MAX * (pkt.data[3]/255.0)
+ AMP = MAX * (pkt.as_float(3))
signal.setitimer(signal.ITIMER_REAL, dur)
elif pkt.cmd == CMD.CAPS:
data = [0] * 8