Re: [haskell-art] Playing a beep
On Mon, 3 Aug 2009, Håkan Thörngren wrote: Hi, I am developing a calculator simulator which can do simple beeps. The simulator figures out the frequency and duration of the beep and informs a separate thread about it. That thread is then supposed to perform the actual playing of the beep. So far I have tried to use Synthesizer and I can sometimes get some fragments of beeps to occur, but it is very erratic and often/soon I tend to get: interactive: fd:19: hPutBuf: resource vanished (Broken pipe) after which no beeps occurs. Probably my thread dies when this happens. Too bad. I thought Sox would be an easy and portable way. But people already reported problems on Windows. Now Mac. I use Linux, where I also encountered a bug recently. Maybe a Sox bug? Have you tried 'sox' package and included examples alone? Please see haskell-art archive. We had a discussion about such issues a month ago or so.___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] Playing a beep
On Mon, Aug 3, 2009 at 9:06 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: Too bad. I thought Sox would be an easy and portable way. But people already reported problems on Windows. Now Mac. I use Linux, where I also encountered a bug recently. Maybe a Sox bug? Have you tried 'sox' package and included examples alone? I tried the oscillator example as given, if it plays, it plays forever. But about half of the times it just dies with the broken pipe error and no sound at all. I did not find any examples in the sox package? Apparantly the play command crashes. I have a crash dump, but it does not say so much, I probably need a debug version of it. I will see if I can investigate it later this week. I will also take a look in the archives. ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art