[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: reviving the ao luarock
- From: Daurnimator <quae@...>
- Date: Fri, 4 Aug 2017 11:01:00 +1000
On 4 August 2017 at 10:31, Peter Billam <pjb@pjb.com.au> wrote:
> Daurnimator wrote:
>>
>> Looks like luaL_register should be replaced here with luaL_newlib
>> Examples should then be rewritten to do: local ao = require "ao"
>
>
> Thanks for that; this compiles just fine:
>
> #if LUA_VERSION_NUM >= 502
> luaL_newlib(L, ao); /* 5.2 */
> #else
> luaL_register(L, "ao", ao); /* 5.1 */
> #endif
>
> Unfortunately, I still can't get the example script to work
> well :-( It produces half a second of loud noise,
> then half a second of sine-wave with a glitch in the middle.
> And attempts to output more than one second segfault.
> I'll wrestle with it a bit...
I had a quick look into it and fixed it: https://github.com/TheLinx/lao/pull/4