Nevyn Bengtsson
cdbefafc1a
review: style fixes
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
5e66ecf000
lovrPlatformRequest{AudioCapture->Permission}(Perm) + platform stubs
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
084ac9d880
review: newSource() gets options table
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
b7b63a268b
review: getSpatial > isSpatial
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
0265babef4
Android: Ask for permissions on demand
...
By looking for failed start and requesting then;
and then emitting a new event type when
permission has been granted or rejected;
and then using that event in the default
boot.lua to re-start capture.
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
aa3dc76176
Audio: Don't open capture at start, allow it to be enabled later
...
So that we can try once on demand,
and again when permissions are granted
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
a941c5b02a
record audio permission in manifest
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
1b8a951007
magic numbers and typos
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
2a3526bcd7
Android: Ask for audio permissions on startup
...
Will change this to ask on demand in an upcoming commit
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
bb429829f6
Android: Link OpenSLES so miniaudio works
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
e54629dfb0
Android: Link appcompat so we can ask for audio capture permissions
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
6f803ad3f0
filesystem.append didn't append in Unix
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
2317ae31cd
miniaudio: cherry-pick 2dc604ecde0f02280690c72f943bfb8bf52dd820
...
This fixes capture on linux/pulseaudio
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
a344acd84f
SoundData:getBlob
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
139c80fc28
Capture audio (and remove more magic numbers, and clean up some misconceptions)
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
033817bd74
audio capture stubs
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
5c2e270c3f
audio: clean up some magic numbers
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
407742e8b5
make Source:setSpatial a constructor option instead
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
8403c9bd70
just a super dummy spatializer
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
01b8a6baa6
spatializer hooks to mixer
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
fe8a6e8612
expose Source:{get|set}Spatial
2021-02-08 16:08:29 -07:00
bjorn
533939e673
Source:getDuration; Source:get/setTime;
2021-02-08 16:08:29 -07:00
bjorn
f7169ec236
Source:pause; Source:stop; Source:isPlaying;
2021-02-08 16:08:29 -07:00
bjorn
cbf0416988
Update to new enum system;
2021-02-08 16:08:29 -07:00
bjorn
c738ae9993
Update CMake/deps;
2021-02-08 16:08:29 -07:00
bjorn
70839535f3
WIP;
2021-02-08 16:08:29 -07:00
bjorn
121a4f7108
Start spatialization and data conversion systems;
2021-02-08 16:08:29 -07:00
bjorn
40cffbe590
Remove integer conversion APIs from stb_vorbis;
2021-02-08 16:08:29 -07:00
bjorn
1eb4070c92
Mixing;
2021-02-08 16:08:29 -07:00
bjorn
205e9404e0
Looping, playback;
2021-02-08 16:08:29 -07:00
bjorn
c92b47e3a6
Another miniaudio attempt WIP;
2021-02-08 16:08:29 -07:00
bjorn
ed09bc3cfa
rm unnecessary newlines in assert messages;
2021-02-07 16:58:50 -07:00
bjorn
1dd692a009
lovrPlatformGetWindow -> lovrPlatformGetWin32Window;
2021-02-07 16:57:08 -07:00
bjorn
47ec05d385
CMake: strip android libraries;
2021-02-07 16:53:54 -07:00
bjorn
0e375804fe
Only include <lualib.h> when needed;
2021-02-07 16:51:31 -07:00
bjorn
323436898a
Add WIN32_LEAN_AND_MEAN;
2021-02-07 16:49:34 -07:00
bjorn
4cf89fa6db
Fix CMakeLists;
2021-02-07 16:48:25 -07:00
bjorn
d2ff6c29ac
Change inclusive module defines to exclusive;
...
This reduces the number of flags needed to get a regular build.
2021-02-07 16:45:03 -07:00
bjorn
909c9f94e9
Update ode;
2021-02-06 19:15:22 -07:00
bjorn
709a41a352
Do more rendering work when lovr.draw is missing;
...
- The lovr.headset.renderTo callback can now be nil, causing an empty frame to be submitted to the compositor.
- lovr.mirror will still be called if lovr.draw is nil. This means the window will be (correctly?) cleared to the background color now if lovr.draw is nil.
This prevents runtimes from thinking the app is missing/unresponsive when lovr.draw is absent. To get the old behavior, just don't call lovr.headset.renderTo.
2021-02-05 15:03:06 -07:00
bjorn
32000bfb63
Ensure buildAPK builds after lovr;
2021-02-04 22:27:06 -07:00
bjorn
2b1bb31b4c
CMake: Linux plugin/rpath/bin;
...
- Linux rpath is changed to $ORIGIN
- Libraries (shared libraries and plugins) are copied to executable.
- Executable is output to bin dir for easier packaging.
Need to look into consolidating the move_lib functions for each platform.
2021-02-02 03:19:55 -07:00
bjorn
8038353eac
tup: output to bin folder; toplevel config;
2021-02-01 23:48:15 -07:00
bjorn
deeaff7a00
lovr.filesystem.write/append take Blobs;
2021-01-20 10:55:10 -07:00
bjorn
f1a5887133
WIP holographic_controller bindings;
2021-01-08 21:18:03 -07:00
bjorn
4f5b044c1d
Update README;
2021-01-07 14:42:07 -07:00
bjorn
d66a97bf40
Update README;
2021-01-07 14:38:47 -07:00
bjorn
0c03be1090
tup updates;
...
- rm json and enet (they're plugins now)
- ignore a warning in stb_image
2021-01-07 14:35:28 -07:00
Bjorn
6756a94cb9
Merge pull request #353 from bjornbytes/plugins
...
Plugins;
2020-12-31 17:18:42 -07:00
bjorn
60c45c4c68
Bump msdfgen;
2020-12-28 15:11:49 -07:00