bjorn
15975343ea
Sound:get/setFrames respects channel count;
2021-04-03 10:28:03 -06:00
bjorn
024498b964
Source:clone fixes;
...
Clones no longer try to create converters if they aren't needed, which
was causing an error.
Also handle malloc failure.
2021-04-03 09:49:27 -06:00
bjorn
62eb47d9a6
tup: Add -funwind-tables;
2021-04-03 01:19:56 -06:00
bjorn
bbc868b2ea
CMake: Only strip android libraries in release mode;
2021-04-03 01:18:58 -06:00
bjorn
4b1cca50bc
CMake: msdfgen is always shared;
2021-04-03 01:18:40 -06:00
bjorn
4469fc99e8
Fix mixer bug; Refactor mixer;
...
- Sources without converters always read into the beginning of the
raw buffer, overwriting previous frames if the source was rewound
due to looping. This resulted in an audible click whenever the
source was rewound.
- After looping, Sources without converters would try to read too
many frames -- they would read a full buffer instead of only the
necessary number of frames.
2021-04-02 23:36:30 -06:00
bjorn
69b5c51388
Fix Sound:setFrames;
2021-04-02 23:35:18 -06:00
bjorn
6f6e7eea1b
Better newSound error messages;
2021-04-02 23:35:18 -06:00
bjorn
6ae0d9f96a
phonon works by default when no mesh is provided;
2021-04-02 23:35:18 -06:00
bjorn
618fb2ed2f
CMake: macOS builds into bin dir and moves libraries there;
...
A previous change modified the rpath to always be @executable_path.
This patch moves all libraries next to the executable, so that they can
load properly with the new rpath. For better organization, everything
is nested into a bin directory. This is congruent with how linux works.
Bundled builds remain the same -- they are using @executable_path like
before, and libraries get moved next to the executable inside the .app.
2021-04-02 22:17:58 -06:00
mcc
6b099e467f
Encapsulate "uses spatializer?" nature in lovrSourceUsesSpatializer
...
Also, remove accessor prototype for old IsSpatial() function
2021-04-02 14:16:39 -06:00
bjorn
245fed5e39
CMake: macOS always builds with @executable_path rpath;
2021-04-02 01:07:37 -06:00
bjorn
0021c70f9f
luax_readmesh supports nested tables;
2021-04-01 18:48:37 -06:00
bjorn
82a309a56d
Draft new effects API;
...
- A list or map of effects can be provided to newSource.
- false can be used to bypass effects.
- All effects are enabled by default.
- Occlusion-y effects should only take effect when setGeometry is called
- Spatializer is responsible for ensuring this.
2021-04-01 16:46:16 -06:00
bjorn
923498a927
webxr: also support velocity of head device;
2021-03-31 22:47:26 -06:00
bjorn
72403de209
webxr: Add support for lovr.headset.getVelocity;
2021-03-31 22:37:29 -06:00
bjorn
35032bb21c
Upgrade miniaudio;
2021-03-31 22:32:16 -06:00
bjorn
441039db19
miniadio: Enable WebAudio backend;
2021-03-31 14:30:06 -06:00
bjorn
7e003032b5
Add favicon to wasm build;
...
Totally useless, but totally awesome.
2021-03-31 14:28:05 -06:00
bjorn
cfe0d71520
audio: throw if miniaudio fails to initialize;
...
This prevents a situation where miniaudio fails to initialize but the
audio module is still usable.
2021-03-31 14:01:30 -06:00
bjorn
0ef48d3d26
os_web: fix mouse support;
...
Not sure why this got removed.
2021-03-31 11:24:52 -06:00
mcc
896ebf0181
Phonon/SteamAudio support in CMake build
2021-03-30 18:38:14 -06:00
bjorn
4a2c315bdb
Fix luax_readmesh with Model;
2021-03-30 12:48:18 -06:00
bjorn
eb8b559e88
phonon: Fix freeing incorrect variable;
2021-03-30 12:45:24 -06:00
Josip Miskovic
f6fbc2ad17
Route ODE messages into LOVR log system
...
ODE errors, debugs and messages are redirected into LOVR's log system
by a callback mechanism for each.
The ODE submodule is updated to revision that does not crash when error
or debug occurs.
2021-03-28 17:34:11 -06:00
bjorn
0daaca7a4f
Merge branch 'master' into dev
2021-03-28 10:09:58 -06:00
bjorn
e346c3f807
Fix standard shader precision issues;
...
- Reduce epsilon
- Also use epsilon in D_GGX
- Reduce shader string length to the minimum required supported length
2021-03-28 10:08:10 -06:00
bjorn
2b1b777e84
Fix crash when passing nothing to newTexture;
2021-03-26 20:02:38 -06:00
bjorn
948b77b7fa
phonon doesn't try to make a mesh if there are no vertices;
2021-03-26 10:30:08 -06:00
bjorn
0dfc80e42e
luax_readmesh assert for index range;
2021-03-26 10:23:24 -06:00
bjorn
61ef2747ee
World:newMeshCollider uses luax_readmesh;
...
This is a breaking API change -- instead of a table of tables, a flat
table of coordinates must be used.
2021-03-25 12:29:11 -06:00
bjorn
6413a6eda2
Fix Model:getTriangles; Add Lua API;
2021-03-25 12:29:11 -06:00
bjorn
fe0eedea20
luax_readtriangles -> luax_readmesh; Model support;
2021-03-25 12:29:11 -06:00
bjorn
e1195a92a0
lovrModelGetTriangles;
2021-03-25 12:29:11 -06:00
bjorn
3a35f81918
Fix underscores not printing;
...
Signed arithmetic strikes again. Before the padding was configurable,
padding was just a #define'd constant, so signedness didn't matter.
2021-03-25 12:18:48 -06:00
bjorn
4db65e9753
tup: Use a bin for objects;
2021-03-25 11:07:55 -06:00
bjorn
895589c914
Add even more padding to stb zlib;
2021-03-24 21:13:04 -06:00
bjorn
e82d8e9cc1
Tuprules: fix ode path;
2021-03-24 14:32:56 -06:00
bjorn
fd39ed9420
os_android: fix improper cast;
2021-03-24 14:32:56 -06:00
mcc
3619626710
CMake build fix for Oculus Audio on Quest
2021-03-23 14:37:30 -06:00
bjorn
634e7210bf
Make Source:clone suck less;
2021-03-23 14:31:04 -06:00
bjorn
121e0fde4c
Add vanilla Lua submodule;
...
This needs testing on other platforms.
2021-03-23 14:31:04 -06:00
bjorn
49f02c65d8
rm lua submodule;
2021-03-23 14:31:04 -06:00
bjorn
5ef5ac5f22
I am once again fixing the mixer EOF case;
2021-03-23 14:31:04 -06:00
bjorn
6a79ffb34a
rm Source::blend;
2021-03-23 14:31:04 -06:00
bjorn
de5099badd
rm SourceInterpolation;
2021-03-23 14:31:04 -06:00
bjorn
98f33dc131
mv falloff attenuation;
2021-03-23 14:31:04 -06:00
mcc
e3c2b5b865
Fix Android build
...
- Fix typos after refactor
- Fix CMake when using ANDROID_PACKAGE
2021-03-22 14:09:16 -06:00
bjorn
a1f768e1a3
lovr.audio.stop properly returns success;
2021-03-20 11:57:46 -06:00
bjorn
b1f7a6c11d
Add optional VolumeUnit to get/setVolume functions;
...
Volume can be specified in linear units or dB.
2021-03-19 17:20:48 -06:00