<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/playsound</filename>
    </added>
    <added>
      <filename>sounds/doom/0.wav</filename>
    </added>
    <added>
      <filename>sounds/doom/1.wav</filename>
    </added>
    <added>
      <filename>sounds/doom/2.wav</filename>
    </added>
    <added>
      <filename>sounds/doom/3.wav</filename>
    </added>
    <added>
      <filename>sounds/doom/4.wav</filename>
    </added>
    <added>
      <filename>sounds/doom/5.wav</filename>
    </added>
    <added>
      <filename>sounds/doom/6.wav</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -34,6 +34,7 @@ website/stylesheets/screen.css
 website/template.html.erb
 bin/an-install
 bin/an-uninstall
+bin/playsound
 images/pass.png
 images/fail.png
 autotest-notification.gemspec
@@ -43,4 +44,11 @@ images/doom/doom_2.png
 images/doom/doom_3.png
 images/doom/doom_4.png
 images/doom/doom_5.png
-images/doom/doom_6.png
\ No newline at end of file
+images/doom/doom_6.png
+sounds/doom/0.wav
+sounds/doom/1.wav
+sounds/doom/2.wav
+sounds/doom/3.wav
+sounds/doom/4.wav
+sounds/doom/5.wav
+sounds/doom/6.wav
\ No newline at end of file</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -46,7 +46,7 @@ module AutotestNotification
       when /linux/
         Linux.notify(title, msg, img, failures)
       when /darwin/
-        Mac.notify(title, msg, img, failures, pri)
+        Mac.notify(title, msg, img, total, failures, pri)
       when /cygwin/
         Cygwin.notify(title, msg, img)
       when /mswin/</diff>
      <filename>lib/autotest_notification.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,17 @@ module AutotestNotification
   class Doom
     class &lt;&lt; self
       def image(total, failures)
-        percent = failures.zero? ? 0 : ((5 * failures) / total) + 1
-        &quot;#{IMAGES_DIRECTORY}/doom/doom_#{percent}.png&quot;
+        &quot;#{IMAGES_DIRECTORY}/doom/doom_#{percent(total, failures)}.png&quot;
       end
+
+      def play_sound(total, failures)
+        `#{File.expand_path(File.dirname(__FILE__) + &quot;/../../bin/&quot;)}/playsound #{File.expand_path(File.dirname(__FILE__) + &quot;/../../sounds/doom/&quot;)}/#{percent(total, failures)}.wav`
+      end
+
+      private
+        def percent(total, failures)
+          percent = failures.zero? ? 0 : ((5 * failures) / total) + 1
+        end
     end
   end
 end</diff>
      <filename>lib/autotest_notification/doom.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,20 +3,22 @@ module AutotestNotification
     @last_test_failed = false
 
     class &lt;&lt; self
-      def notify(title, msg, img, failures = 0, pri = 0)
+      
+      def notify(title, msg, img, total = 1, failures = 0, pri = 0)
         system &quot;growlnotify -n autotest --image #{img} -p #{pri} -m '#{msg}' #{title}&quot;
-        say(failures) if SPEAKING
+        say(total, failures) if SPEAKING
       end
 
-      def say(failures)
+      def say(total, failures)
         if failures &gt; 0
-          system(&quot;say #{failures} test#{'s' unless failures == 1} failed.&quot;)
+          DOOM_EDITION ? Doom.play_sound(total, failures) : system(&quot;say #{failures} test#{'s' unless failures == 1} failed.&quot;)
           @last_test_failed = true
         elsif @last_test_failed
-          system(&quot;say All tests passed successfully.&quot;)
+          DOOM_EDITION ? Doom.play_sound(total, failures) : system(&quot;say All tests passed successfully.&quot;)
           @last_test_failed = false
         end
       end
+      
     end
   end
 end</diff>
      <filename>lib/autotest_notification/mac.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module AutotestNotification #:nodoc:
   module VERSION #:nodoc:
     MAJOR = 1
-    MINOR = 2
+    MINOR = 3
     TINY  = 0
 
     STRING = [MAJOR, MINOR, TINY].join('.')</diff>
      <filename>lib/autotest_notification/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>681a12754784b75b7978cc29ec408536e1530638</id>
    </parent>
  </parents>
  <author>
    <name>Carlos Brando</name>
    <email>eduardobrando@gmail.com</email>
  </author>
  <url>http://github.com/carlosbrando/autotest-notification/commit/783b089b82447310757ccb1a8dbf567d9b15de89</url>
  <id>783b089b82447310757ccb1a8dbf567d9b15de89</id>
  <committed-date>2008-06-18T07:48:13-07:00</committed-date>
  <authored-date>2008-06-18T07:48:13-07:00</authored-date>
  <message>Added Doom sounds.</message>
  <tree>5b573cca8a8d07f2b798e1bace40633b75f0505d</tree>
  <committer>
    <name>Carlos Brando</name>
    <email>eduardobrando@gmail.com</email>
  </committer>
</commit>
