summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Muszytowski <sebastian@muszytowski.net>2016-01-23 00:04:35 +0100
committerSebastian Muszytowski <sebastian@muszytowski.net>2016-01-23 00:04:35 +0100
commit7329a043487aa10b7917a3db4df9af22f2e16e0d (patch)
treeb427a9f3e213ed0c880541d7e33de608747dac76
parent437559dcadb7d904ed690a0c832660c4d085201e (diff)
minor change
-rwxr-xr-xutilities/modem_transmit9
1 files changed, 6 insertions, 3 deletions
diff --git a/utilities/modem_transmit b/utilities/modem_transmit
index b36d4a7..6101641 100755
--- a/utilities/modem_transmit
+++ b/utilities/modem_transmit
@@ -1,13 +1,16 @@
#!/bin/zsh
-python modem.py =(echo -n "$1"$'\0') /tmp/wat.wav
+OUT="$(mktemp)"
+
+python modem.py =(echo -n "$1"$'\0') $OUT
case "$(uname -s)" in
Darwin)
- play /tmp/wat.wav
+ play $OUT
;;
*)
- aplay /tmp/wat.wav
+ aplay $OUT
;;
esac
+rm $OUT \ No newline at end of file