Re[2]: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-06 Thread Bulat Ziganshin
Hello Andrew, Sunday, December 6, 2009, 1:09:18 AM, you wrote: Maybe once I get hired by some financial modelling consultants and get paid shedloads of money to write Haskell all day, I'll be able to afford a Mac. But until then... with such attitude you will never be hired by financial

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-06 Thread Andrew Coppin
Bulat Ziganshin wrote: Hello Andrew, Sunday, December 6, 2009, 1:09:18 AM, you wrote: Maybe once I get hired by some financial modelling consultants and get paid shedloads of money to write Haskell all day, I'll be able to afford a Mac. But until then... with such attitude you will

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Andrew Coppin
M Xyz wrote: if you get it to work As a spoiled Java programmer, this new role as pioneer is a bit intimidating, but I will give it a shot. :) I wish there was a multimedia standard library for beginners like me. Writing audio to the speakers shouldn't be such a journey.

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Stephen Tetley
Hello Andrew Plenty compile on Windows: Some OpenVG, OpenGL[1] (still? - I'm a bit behind the times) only compile with MinGW. Others are fine with Cygwin provided you have the dev packages installed (readline, pcre-light...). Yet others - no chance... If you can get the raw C library to work

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread wren ng thornton
Andrew Coppin wrote: Unfortunately, I've yet to find a single Haskell package that binds to C which will actually compile on Windows. :-( Take a look at logfloat[1], it builds cleanly on Windows XP using GHC 6.10.1 without needing Cygwin nor Mingw/Msys (however GHCi has some DLL errors[2]).

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Andrew Coppin
Stephen Tetley wrote: Hello Andrew Plenty compile on Windows: Some OpenVG, OpenGL[1] (still? - I'm a bit behind the times) only compile with MinGW. Others are fine with Cygwin provided you have the dev packages installed (readline, pcre-light...). You're talking about MinGW and Cygwin.

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Miguel Mitrofanov
I'm constantly amused by those who manage to use Windows without installing Cygwin. On 5 Dec 2009, at 23:33, Andrew Coppin wrote: Stephen Tetley wrote: Hello Andrew Plenty compile on Windows: Some OpenVG, OpenGL[1] (still? - I'm a bit behind the times) only compile with MinGW. Others are

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Stephen Tetley
Hi Andrew 2009/12/5 Andrew Coppin andrewcop...@btinternet.com: I don't think it should be necessary to install a Unix emulator just so that I can write Windows programs. Maybe others disagree. ... I'm by no means an expert here, but isn't it usual for C libraries on Windows to be

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Andrew Coppin
Miguel Mitrofanov wrote: I'm constantly amused by those who manage to use Windows without installing Cygwin. I'm constantly puzzled by those who think that Cygwin is a mandatory part of Windows. ;-) ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Daniel Fischer
Am Samstag 05 Dezember 2009 21:43:13 schrieb Miguel Mitrofanov: I'm constantly amused by those who manage to use Windows without   installing Cygwin. I'm constantly amazed by those who manage to use Windows. (In case you want to misunderstand, it's not a Windows bashing, I just never managed

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Andrew Coppin
Daniel Fischer wrote: I'm constantly amazed by those who manage to use Windows. (In case you want to misunderstand, it's not a Windows bashing, I just never managed to work with it I've not had a lot of luck with Linux. I imagine this is merely due to having a lot more experience with

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Stephen Tetley
Compiling the C PortAudio library for either Cygwin or MinGW will be challenging at the moment. The current release doesn't compile as is, and although there should be patch for the configure script as an attachment to this message it seems to have gone amiss:

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Miguel Mitrofanov
Try Mac. /commercial On 6 Dec 2009, at 01:00, Andrew Coppin wrote: Daniel Fischer wrote: I'm constantly amazed by those who manage to use Windows. (In case you want to misunderstand, it's not a Windows bashing, I just never managed to work with it I've not had a lot of luck with Linux.

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Andrew Coppin
Miguel Mitrofanov wrote: Try Mac. /commercial You're not the first to suggest this either. ;-) Maybe once I get hired by some financial modelling consultants and get paid shedloads of money to write Haskell all day, I'll be able to afford a Mac. But until then...

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread M Xyz
like this post from months ago: http://www.mail-archive.com/haskell-...@lurk.org/msg00101.html --- On Sat, 12/5/09, Stephen Tetley stephen.tet...@gmail.com wrote: From: Stephen Tetley stephen.tet...@gmail.com Subject: Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card? To: haskell

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Daniel Fischer
Am Sonntag 06 Dezember 2009 00:10:05 schrieb M Xyz: Stephen, I had no problem compiling the portaudio binaries on Windows. It came with a msvc project that worked. The problem I'm getting currently is that when I cabal install portaudio etc etc I get a c2hs.exe does not exist error when

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread M Xyz
--- On Sat, 12/5/09, Daniel Fischer daniel.is.fisc...@web.de wrote: Try cabal install --with-c2hs=C:\path\to\c2hs.exe portaudio maybe that'll work. If not, run cabal --verbose=3 install portaudio, perhaps that gives more information about what went wrong. Daniel, Thank you for your

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Daniel Fischer
Am Sonntag 06 Dezember 2009 00:47:38 schrieb M Xyz: Daniel, Thank you for your thoughtful reply. I didn't know about those flags. The log is fairly long, and as I'm new to Haskell and Cabal it is mostly meaningless to me. I see very many incidences of searching for ___ in path. Cannot find ___

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread Daniel Fischer
Am Sonntag 06 Dezember 2009 01:49:49 schrieb M Xyz: I just had another idea. da...@linux-mkk1:~ c2hs -o memyself.hs memyself.chs c2hs: does not exist it's not that c2hs isn't found or something, c2hs doesn't find Base.chs! Try installing from the unpacked sources (cd portaudio; cabal install)

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread M Xyz
--- On Sat, 12/5/09, Daniel Fischer daniel.is.fisc...@web.de wrote: cd portaudio-0.0.1 ghc --make Setup ../Setup configure --help (choose your options, prefix, profiling, ...) ../Setup configure $OPTIONS ../Setup build Everything went well until Setup build which yielded our friend

RE: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-05 Thread M Xyz
: john lask jvl...@hotmail.com Subject: RE: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card? To: daniel.is.fisc...@web.de, functionallyharmoni...@yahoo.com Cc: haskell-cafe@haskell.org Date: Saturday, December 5, 2009, 9:03 PM I don't know whether this will help you but I just

[Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread M Xyz
What is the most minimal (preferably platform independent) library available for writing bytes to the sound card? I see 60 wonderful libraries on Hackage, but I really just need the Haskell equivalent of an audio.write(byte[]) method. What sound api are these 60 libraries using? I think the

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread John Van Enk
Hi, portaudio is my embarrassing fault, but it does work most of the time. (Community, some one remind me to revisit this package after Christmas.) Are you running in Windows? Linux? If Linux, which flavor? /jve On Fri, Dec 4, 2009 at 1:51 PM, M Xyz functionallyharmoni...@yahoo.comwrote:

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread M Xyz
Hi, portaudio is my embarrassing fault, but it does work most of the time. (Community, some one remind me to revisit this package after Christmas.) Are you running in Windows? Linux? If Linux, which flavor? /jve I'm using Haskell on XP but I dual boot with Ubuntu 9 and I'd prefer not to

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread John Van Enk
You'll have to install the portaudio C libraries and header files before continuing. I never actually tested the package on XP, if you get it to work, I'd love to hear your experience. /jve On Fri, Dec 4, 2009 at 2:20 PM, M Xyz functionallyharmoni...@yahoo.comwrote: Hi, portaudio is my

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread M Xyz
if you get it to work As a spoiled Java programmer, this new role as pioneer is a bit intimidating, but I will give it a shot. :) I downloaded the portaudio v19 source and I'm attempting to build it. Apparently I have to register my Visual Studio Express with Microsoft. Deeper down the

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread minh thu
2009/12/4 M Xyz functionallyharmoni...@yahoo.com if you get it to work As a spoiled Java programmer, this new role as pioneer is a bit intimidating, but I will give it a shot. :) I downloaded the portaudio v19 source and I'm attempting to build it. Apparently I have to register my

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread M Xyz
Did you look at synthesizer ? There is a short introductory file [1]. Cheers, Thu [1] http://hackage.haskell.org/packages/archive/synthesizer-core/0.2.1/doc/html/Synthesizer-Plain-Tutorial.html Thanks for the tutorial link. As I'm new to Haskell, these 2 lines got me thinking: Using plain

Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

2009-12-04 Thread Henning Thielemann
M Xyz schrieb: Did you look at synthesizer ? There is a short introductory file [1]. Cheers, Thu [1] http://hackage.haskell.org/packages/archive/synthesizer-core/0.2.1/doc/html/Synthesizer-Plain-Tutorial.html Thanks for the tutorial link. As I'm new to Haskell,