Index: /trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java	(revision 9813)
+++ /trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java	(revision 9814)
@@ -4,4 +4,5 @@
 import static org.openstreetmap.josm.tools.I18n.tr;
 
+import java.awt.GraphicsEnvironment;
 import java.io.IOException;
 import java.net.URL;
@@ -378,9 +379,9 @@
             msg = tr(msg);
         Main.error(msg);
-        //if (!GraphicsEnvironment.isHeadless()) {
+        if (!GraphicsEnvironment.isHeadless()) {
             JOptionPane.showMessageDialog(Main.parent,
                     "<html><p>" + msg + "</p></html>",
                     tr("Error playing sound"), JOptionPane.ERROR_MESSAGE);
-        //}
+        }
     }
 }
Index: /trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarkerTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarkerTest.java	(revision 9813)
+++ /trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarkerTest.java	(revision 9814)
@@ -8,5 +8,4 @@
 
 import org.junit.BeforeClass;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.openstreetmap.josm.JOSMFixture;
@@ -35,5 +34,4 @@
      */
     @Test
-    @Ignore("looks like it makes AudioPlayerTest.testPlay fail")
     public void testAudioMarker() throws MalformedURLException {
         URL url = new URL("file://something.wav");
Index: /trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarkerTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarkerTest.java	(revision 9813)
+++ /trunk/test/unit/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarkerTest.java	(revision 9814)
@@ -6,5 +6,4 @@
 
 import org.junit.BeforeClass;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.openstreetmap.josm.JOSMFixture;
@@ -29,5 +28,4 @@
      */
     @Test
-    @Ignore("looks like it makes AudioPlayerTest.testPlay fail")
     public void testPlayHeadMarker() {
         PlayHeadMarker marker = PlayHeadMarker.create();
