summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <devilhorns@comcast.net>2013-06-25 21:18:39 +0100
committerChris Michael <devilhorns@comcast.net>2013-06-25 21:19:15 +0100
commit3885e288f25c70d65693d2671aa6a0c9f348b3c7 (patch)
tree358d0f7121e233c0d7d5d6c491a96648c040ad9d
parent79194c855044077a383a21f780c484dde22343d7 (diff)
Add sound support to mild.edc (which the black theme uses).
Signed-off-by: Chris Michael <devilhorns@comcast.net>
-rw-r--r--data/themes/mild.edc49
1 files changed, 49 insertions, 0 deletions
diff --git a/data/themes/mild.edc b/data/themes/mild.edc
index 6341785..f2a85cc 100644
--- a/data/themes/mild.edc
+++ b/data/themes/mild.edc
@@ -26,6 +26,11 @@ collections {
26 image: "pm_overlay.png" COMP; 26 image: "pm_overlay.png" COMP;
27 image: "pm_fill.png" COMP; 27 image: "pm_fill.png" COMP;
28 } 28 }
29 sounds {
30 sample { name: "bell" LOSSY 64;
31 source: "bell.wav";
32 }
33 }
29 parts { 34 parts {
30 //////////////////////////////////////////////////////////////////// 35 ////////////////////////////////////////////////////////////////////
31 // background handling 36 // background handling
@@ -191,6 +196,10 @@ collections {
191 } 196 }
192 } 197 }
193 program { 198 program {
199 signal: "bell"; source: "terminology";
200 action: PLAY_SAMPLE "bell" 1.0;
201 }
202 program {
194 signal: "bell"; 203 signal: "bell";
195 source: "terminology"; 204 source: "terminology";
196 action: STATE_SET "default" 0.0; 205 action: STATE_SET "default" 0.0;
@@ -1085,6 +1094,23 @@ collections {
1085 image: "cr_key.png" COMP; 1094 image: "cr_key.png" COMP;
1086 image: "cr_out.png" COMP; 1095 image: "cr_out.png" COMP;
1087 } 1096 }
1097 sounds {
1098 sample { name: "key-tap1" LOSSY 64;
1099 source: "kbd-tap.wav";
1100 }
1101 sample { name: "key-tap2" LOSSY 64;
1102 source: "kbd-tap2.wav";
1103 }
1104 sample { name: "key-tap3" LOSSY 64;
1105 source: "kbd-tap3.wav";
1106 }
1107 sample { name: "key-tap4" LOSSY 64;
1108 source: "kbd-tap4.wav";
1109 }
1110 sample { name: "key-tap5" LOSSY 64;
1111 source: "kbd-tap5.wav";
1112 }
1113 }
1088 parts { 1114 parts {
1089 part { name: "pulsclip"; type: RECT; 1115 part { name: "pulsclip"; type: RECT;
1090 description { state: "default" 0.0; 1116 description { state: "default" 0.0;
@@ -1181,6 +1207,29 @@ collections {
1181 target: "outline"; 1207 target: "outline";
1182 target: "pulsclip"; 1208 target: "pulsclip";
1183 } 1209 }
1210 program {
1211 signal: "key,down"; source: "terminology";
1212 script {
1213 new buf[32];
1214 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
1215 run_program(get_program_id(buf));
1216 }
1217 }
1218 program { name: "key-down1";
1219 action: PLAY_SAMPLE "key-tap1" 1.0;
1220 }
1221 program { name: "key-down2";
1222 action: PLAY_SAMPLE "key-tap2" 1.0;
1223 }
1224 program { name: "key-down3";
1225 action: PLAY_SAMPLE "key-tap3" 1.0;
1226 }
1227 program { name: "key-down4";
1228 action: PLAY_SAMPLE "key-tap4" 1.0;
1229 }
1230 program { name: "key-down5";
1231 action: PLAY_SAMPLE "key-tap5" 1.0;
1232 }
1184 program { name: "key"; 1233 program { name: "key";
1185 signal: "key,down"; 1234 signal: "key,down";
1186 source: "terminology"; 1235 source: "terminology";