Add startup sound support to the httpd. - bitreich-httpd - Bitreich HTTPD servi… | |
git clone git://bitreich.org/bitreich-httpd git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 458867563dbad1db447aa489fdf56bd614f02154 | |
parent cc63ab3d1f6bbed6ea4bae99d2327a961b8807e1 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Wed, 26 Aug 2020 19:21:41 +0200 | |
Add startup sound support to the httpd. | |
Diffstat: | |
M bitreich-httpd.c | 6 ++++++ | |
1 file changed, 6 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/bitreich-httpd.c b/bitreich-httpd.c | |
@@ -133,6 +133,12 @@ main(int argc, char *argv[]) | |
} else if (strstr(request, "favicon.gif")) { | |
asprintf(&path, "%s/s/favicon.gif", wwwbase); | |
ctype = "image/gif"; | |
+ } else if (strstr(request, "deep-thinker.gif")) { | |
+ asprintf(&path, "%s/s/deep-thinker.gif", wwwbase); | |
+ ctype = "image/gif"; | |
+ } else if (strstr(request, "startup.mp3")) { | |
+ asprintf(&path, "%s/s/startup.mp3", wwwbase); | |
+ ctype = "audio/mpeg"; | |
} else if (strstr(request, "dickbutt")) { | |
asprintf(&path, | |
"/home/annna/bin/annna-say -c \"#bitreich-tv\" \"%s:%s… |