added dart sounds
authorOthmar Gsenger <otti@realraum.at>
Thu, 30 Jun 2011 02:09:01 +0000 (02:09 +0000)
committerOthmar Gsenger <otti@realraum.at>
Thu, 30 Jun 2011 02:09:01 +0000 (02:09 +0000)
26 files changed:
dart-sounds/1.ogg [new file with mode: 0644]
dart-sounds/10.ogg [new file with mode: 0644]
dart-sounds/11.ogg [new file with mode: 0644]
dart-sounds/12.ogg [new file with mode: 0644]
dart-sounds/13.ogg [new file with mode: 0644]
dart-sounds/14.ogg [new file with mode: 0644]
dart-sounds/15.ogg [new file with mode: 0644]
dart-sounds/16.ogg [new file with mode: 0644]
dart-sounds/17.ogg [new file with mode: 0644]
dart-sounds/18.ogg [new file with mode: 0644]
dart-sounds/19.ogg [new file with mode: 0644]
dart-sounds/2.ogg [new file with mode: 0644]
dart-sounds/20.ogg [new file with mode: 0644]
dart-sounds/3.ogg [new file with mode: 0644]
dart-sounds/4.ogg [new file with mode: 0644]
dart-sounds/5.ogg [new file with mode: 0644]
dart-sounds/6.ogg [new file with mode: 0644]
dart-sounds/7.ogg [new file with mode: 0644]
dart-sounds/8.ogg [new file with mode: 0644]
dart-sounds/9.ogg [new file with mode: 0644]
dart-sounds/bull.ogg [new file with mode: 0644]
dart-sounds/bullseye.ogg [new file with mode: 0644]
dart-sounds/double.ogg [new file with mode: 0644]
dart-sounds/scho.ogg [new file with mode: 0644]
dart-sounds/sound.pl [new file with mode: 0755]
dart-sounds/triple.ogg [new file with mode: 0644]

diff --git a/dart-sounds/1.ogg b/dart-sounds/1.ogg
new file mode 100644 (file)
index 0000000..e8f0eac
Binary files /dev/null and b/dart-sounds/1.ogg differ
diff --git a/dart-sounds/10.ogg b/dart-sounds/10.ogg
new file mode 100644 (file)
index 0000000..9f6e714
Binary files /dev/null and b/dart-sounds/10.ogg differ
diff --git a/dart-sounds/11.ogg b/dart-sounds/11.ogg
new file mode 100644 (file)
index 0000000..c6f7b54
Binary files /dev/null and b/dart-sounds/11.ogg differ
diff --git a/dart-sounds/12.ogg b/dart-sounds/12.ogg
new file mode 100644 (file)
index 0000000..9d7e12c
Binary files /dev/null and b/dart-sounds/12.ogg differ
diff --git a/dart-sounds/13.ogg b/dart-sounds/13.ogg
new file mode 100644 (file)
index 0000000..5e46f50
Binary files /dev/null and b/dart-sounds/13.ogg differ
diff --git a/dart-sounds/14.ogg b/dart-sounds/14.ogg
new file mode 100644 (file)
index 0000000..3e12573
Binary files /dev/null and b/dart-sounds/14.ogg differ
diff --git a/dart-sounds/15.ogg b/dart-sounds/15.ogg
new file mode 100644 (file)
index 0000000..bdc8cb1
Binary files /dev/null and b/dart-sounds/15.ogg differ
diff --git a/dart-sounds/16.ogg b/dart-sounds/16.ogg
new file mode 100644 (file)
index 0000000..59d7623
Binary files /dev/null and b/dart-sounds/16.ogg differ
diff --git a/dart-sounds/17.ogg b/dart-sounds/17.ogg
new file mode 100644 (file)
index 0000000..5dd7cf2
Binary files /dev/null and b/dart-sounds/17.ogg differ
diff --git a/dart-sounds/18.ogg b/dart-sounds/18.ogg
new file mode 100644 (file)
index 0000000..b385ad4
Binary files /dev/null and b/dart-sounds/18.ogg differ
diff --git a/dart-sounds/19.ogg b/dart-sounds/19.ogg
new file mode 100644 (file)
index 0000000..8be3752
Binary files /dev/null and b/dart-sounds/19.ogg differ
diff --git a/dart-sounds/2.ogg b/dart-sounds/2.ogg
new file mode 100644 (file)
index 0000000..38a4320
Binary files /dev/null and b/dart-sounds/2.ogg differ
diff --git a/dart-sounds/20.ogg b/dart-sounds/20.ogg
new file mode 100644 (file)
index 0000000..96dd777
Binary files /dev/null and b/dart-sounds/20.ogg differ
diff --git a/dart-sounds/3.ogg b/dart-sounds/3.ogg
new file mode 100644 (file)
index 0000000..d3cdc02
Binary files /dev/null and b/dart-sounds/3.ogg differ
diff --git a/dart-sounds/4.ogg b/dart-sounds/4.ogg
new file mode 100644 (file)
index 0000000..1f28d96
Binary files /dev/null and b/dart-sounds/4.ogg differ
diff --git a/dart-sounds/5.ogg b/dart-sounds/5.ogg
new file mode 100644 (file)
index 0000000..5878f64
Binary files /dev/null and b/dart-sounds/5.ogg differ
diff --git a/dart-sounds/6.ogg b/dart-sounds/6.ogg
new file mode 100644 (file)
index 0000000..c34ff13
Binary files /dev/null and b/dart-sounds/6.ogg differ
diff --git a/dart-sounds/7.ogg b/dart-sounds/7.ogg
new file mode 100644 (file)
index 0000000..2e365ce
Binary files /dev/null and b/dart-sounds/7.ogg differ
diff --git a/dart-sounds/8.ogg b/dart-sounds/8.ogg
new file mode 100644 (file)
index 0000000..5cda735
Binary files /dev/null and b/dart-sounds/8.ogg differ
diff --git a/dart-sounds/9.ogg b/dart-sounds/9.ogg
new file mode 100644 (file)
index 0000000..7adaca9
Binary files /dev/null and b/dart-sounds/9.ogg differ
diff --git a/dart-sounds/bull.ogg b/dart-sounds/bull.ogg
new file mode 100644 (file)
index 0000000..6261fad
Binary files /dev/null and b/dart-sounds/bull.ogg differ
diff --git a/dart-sounds/bullseye.ogg b/dart-sounds/bullseye.ogg
new file mode 100644 (file)
index 0000000..5ebce66
Binary files /dev/null and b/dart-sounds/bullseye.ogg differ
diff --git a/dart-sounds/double.ogg b/dart-sounds/double.ogg
new file mode 100644 (file)
index 0000000..11cce5a
Binary files /dev/null and b/dart-sounds/double.ogg differ
diff --git a/dart-sounds/scho.ogg b/dart-sounds/scho.ogg
new file mode 100644 (file)
index 0000000..8abb915
Binary files /dev/null and b/dart-sounds/scho.ogg differ
diff --git a/dart-sounds/sound.pl b/dart-sounds/sound.pl
new file mode 100755 (executable)
index 0000000..d0ee71a
--- /dev/null
@@ -0,0 +1,39 @@
+#!/usr/bin/perl -T -w
+use strict;
+$ENV{PATH}='';
+&main();
+exit 0;
+
+sub play
+{
+  my ($file)=@_;
+       print "$file\n";
+  my $cmd = "/usr/bin/gst-launch-0.10 filesrc location=${file}.ogg ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink";
+       print "$cmd\n";
+  print `$cmd`;
+}
+
+sub main
+{
+  while (my $schuss = <STDIN>)
+  {
+               print $schuss;
+    chomp $schuss;
+               
+    my ($mult,$zahl)=split /\s+/,$schuss;
+               if ($mult==2)
+               {
+                 play("double")
+               } elsif ($mult==3) {
+                 play("triple")
+    }
+               ($zahl) = $zahl =~ m/(\d+)/;
+               if ($zahl >0 && $zahl < 21)
+    {
+                       play($zahl)
+               } else {
+                       play("bull")
+               }
+  } 
+}
+
diff --git a/dart-sounds/triple.ogg b/dart-sounds/triple.ogg
new file mode 100644 (file)
index 0000000..01f0ee4
Binary files /dev/null and b/dart-sounds/triple.ogg differ