diff options
Diffstat (limited to 'utilities/modem_transmit')
-rwxr-xr-x | utilities/modem_transmit | 9 |
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 |