[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-cafe
Subject:    [Haskell-cafe] wxhaskell: Play sound not working on OSX?
From:       Tilmann <t_gass () gmx ! de>
Date:       2016-04-23 12:08:38
Message-ID: 571B65C6.60701 () gmx ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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?

Tilmann


|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") |


Using OSX 10.9.5, GHC 7.10.2, WX 0.92.2.0

http://stackoverflow.com/questions/36809989/play-sound-with-wxhaskell-not-working-on-osx



[Attachment #5 (text/html)]

<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 &lt;- frame []
   p &lt;- 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-workin \
g-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>



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic