<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Is it possible that play . sound might not work on OSX or I'm I
doing something wrong? This advice from around 2006 is all I could
find: "Did you build wxWidgets with configuring --enable-sound
build option?" Is this still valid? If so, how do I do that?<br>
<br>
Tilmann<br>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div class="post-text" itemprop="text">
<pre><code>import Graphics.UI.WX
main :: IO ()
main = start $ do
f <- frame []
p <- panel f []
set f [layout := minsize(Size 100 100) $ widget p]
play (sound "alarm.wav")
</code></pre>
<p><br>
</p>
<p>Using OSX 10.9.5, GHC 7.10.2, WX 0.92.2.0<br>
</p>
<p><a class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/36809989/play-sound-with-wxhaskell-not-working-on-osx">http://stackoverflow.com/questions/36809989/play-sound-with-wxhaskell-not-working-on-osx</a><br>
</p>
</div>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</body>
</html>