changeset 888:b8ecdf54a957

fc-imyplay script
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 03 Apr 2022 04:28:44 +0000
parents 3e398f9c31a0
children 834b5645a123
files ringtools/Makefile ringtools/fc-imyplay
diffstat 2 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ringtools/Makefile	Sun Apr 03 04:17:08 2022 +0000
+++ b/ringtools/Makefile	Sun Apr 03 04:28:44 2022 +0000
@@ -1,7 +1,7 @@
 CC=	gcc
 CFLAGS=	-O2
 PROGS=	fc-e1decode fc-e1gen fc-pwt-comp fc-ringlist-comp
-SCRIPTS=fc-meltest-e1 fc-meltest-pwt
+SCRIPTS=fc-imyplay fc-meltest-e1 fc-meltest-pwt
 SUBDIR=	imy
 
 INSTALL_PREFIX=	/opt/freecalypso
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ringtools/fc-imyplay	Sun Apr 03 04:28:44 2022 +0000
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ $# -lt 1 -o $# -gt 2 ]
+then
+	echo "usage: $0 iMelody_file [volume]" 1>&2
+	exit 1
+fi
+
+tmpfile=/tmp/fc-test-melody.bz
+
+if [ -n "$2" ]
+then
+	volume="$2"
+else
+	volume=64
+fi
+
+set -ex
+
+fc-imy2pwt "$1" | fc-pwt-comp - $tmpfile
+fc-fsio upload-file $tmpfile /buz/test.bz
+fc-shell 'at@buz="/buz/test.bz"'",$volume"