aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--apps/app_externalivr.c2
-rw-r--r--sounds.txt22
3 files changed, 32 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1521b60dc..921d76810 100644
--- a/Makefile
+++ b/Makefile
@@ -553,6 +553,7 @@ clean:
datafiles: all
if [ x`$(ID) -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
+ mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/silence
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros
for x in sounds/digits/*.gsm; do \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
@@ -562,6 +563,14 @@ datafiles: all
exit 1; \
fi; \
done
+ for x in sounds/silence/*.gsm; do \
+ if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
+ $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/silence ; \
+ else \
+ echo "No description for $$x"; \
+ exit 1; \
+ fi; \
+ done
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate
for x in sounds/dictate/*.gsm; do \
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c
index 068463cec..1d4a6f3fd 100644
--- a/apps/app_externalivr.c
+++ b/apps/app_externalivr.c
@@ -153,7 +153,7 @@ static int gen_nextfile(struct gen_state *state)
if (state->current) {
file_to_stream = state->current->filename;
} else {
- file_to_stream = "silence-10";
+ file_to_stream = "silence/10";
u->playing_silence = 1;
}
diff --git a/sounds.txt b/sounds.txt
index c323ffbe6..2dfd0bba7 100644
--- a/sounds.txt
+++ b/sounds.txt
@@ -728,3 +728,25 @@
%spy-zap.gsm%Zap
+; Silence directory
+
+%1.gsm%1 seconds of silence
+
+%2.gsm%2 seconds of silence
+
+%3.gsm%3 seconds of silence
+
+%4.gsm%4 seconds of silence
+
+%5.gsm%5 seconds of silence
+
+%6.gsm%6 seconds of silence
+
+%7.gsm%7 seconds of silence
+
+%8.gsm%8 seconds of silence
+
+%9.gsm%9 seconds of silence
+
+%10.gsm%10 seconds of silence
+