bjorn
90cacd03ca
Handle numbers more consistently in Lua API;
...
I still don't know if I should cast or not, but at least now things
will be consistently right or wrong.
2019-01-11 22:37:54 -08:00
bjorn
c7934b3b13
Update API to work with vectors;
2018-12-02 12:08:07 -08:00
bjorn
0e99d47394
Fix module destruction;
...
There is a problem when a Thread stops: it destroys all of the modules
that it required. This is because we unconditionally call luax_atexit
when modules are required, and when the thread lua_State dies it takes
all of the modules with it. To fix this, lovr<Module>Init will return
whether or not initialization successfully happened, which provides us
with enough info to know if we should place the luax_atexit destructor
2018-11-19 09:24:28 -08:00
bjorn
816fda2177
Fix everything and merge;
2018-09-27 18:38:44 -07:00
bjorn
cee3c28f4e
luax_atexit; rm lovrDestroy;
...
Modules register themselves in the registry for destruction at
lua_close instead of having a hardcoded list in lovrDestroy.
2018-09-27 18:38:44 -07:00
bjorn
e02d22365f
api: refactor;
2018-09-27 18:38:44 -07:00
bjorn
d6daa885c8
Simplify luax_checktype and inheritance;
2018-07-24 21:15:07 -07:00
bjorn
83ddb82162
Simplify Lua object management;
2018-07-24 20:13:54 -07:00
bjorn
b650f2b770
Add Microphone objects for audio capture;
2018-07-06 17:57:31 -07:00
bjorn
fdef90b7bc
Add AudioStream:decode;
2018-07-05 23:30:37 -07:00
bjorn
a670435239
Load static and stream Sources;
2018-07-05 22:08:14 -07:00
bjorn
f903b6014c
Use arrays for enums instead of maps;
2018-07-04 20:11:52 -07:00
bjorn
bdc9b63b8a
Fix lots of memory leaks;
...
Especially when restarting or using threads.
2018-03-23 19:31:45 -07:00
bjorn
4df836727c
Simplify refcounting;
2018-02-26 00:59:03 -08:00
bjorn
ac582890fc
Resurrect lovr.audio.getDopplerEffect and setDopplerEffect;
2018-02-25 22:07:14 -08:00
mcc
b1cbb4bb1e
Error message instead of crash on audio.newSource with non-understood file
2018-02-03 09:34:30 -05:00
bjorn
89891811b7
Create Sources from AudioStreams;
2018-01-22 08:14:24 -08:00
bjorn
fa630b6414
AudioStream bufferSize is configurable;
2018-01-21 13:10:16 -08:00
bjorn
9cd47faf05
Rename SourceData to AudioStream;
2018-01-21 12:54:16 -08:00
bjorn
1d20e49829
Move api header;
2017-12-10 12:41:43 -08:00
bjorn
72aa7e858a
Rename loaders to data;
2017-12-10 12:41:43 -08:00
bjorn
ecde864ec4
Use spooky BOOleans everywhere;
2017-10-31 01:14:09 -07:00
bjorn
18fa9f7d76
Remove doppler effect;
2017-06-18 16:20:30 -07:00
bjorn
7f687f9732
No game screen;
2017-04-02 05:55:21 -07:00
bjorn
fce7746b16
Simplify api structure;
2017-03-11 03:08:07 -08:00
bjorn
fa74254e64
Rename lovr to api;
2017-03-11 02:25:39 -08:00