July 07, 2017 Re: Need simple sound | ||||
---|---|---|---|---|
| ||||
Posted in reply to FoxyBrown | On Thursday, 6 July 2017 at 17:33:49 UTC, FoxyBrown wrote: > > I think the autoDLL if done right. I hacked it together and worked easier than I thought but didn't put in the time to make it nice. It could avoid libs all together, not that we need to do that. Still need a h/di file, of course. > That's what the DerelictUtil ([1] && [2]) package does, though it requires manual effort to load DLLs. It also allows you to load specific versions of a DLL with the same binding. It would be interesting to adapt your "autodll" approach in a future version. [1] http://derelictorg.github.io/loading/loader/ [2] https://github.com/DerelictOrg/DerelictUtil |
July 07, 2017 Re: Need simple sound | ||||
---|---|---|---|---|
| ||||
Posted in reply to FoxyBrown | On Thursday, 6 July 2017 at 20:36:08 UTC, FoxyBrown wrote:
> Heres a better version that automatically generates a class wrapping the portaudio.dll. Need portaudio.di(possibly renamed to portaudio.d and imported). Still same problem as original though.
While you are at it. Please also write compile time C preprocessor. (He said half jokingly.)
I tried your example. Unfortunately my windows dev setup is so far beyond repair, I could not get it to run. I am sorry but I can't help you.
|
Copyright © 1999-2021 by the D Language Foundation