-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcapabilities.lua
More file actions
32 lines (24 loc) · 720 Bytes
/
capabilities.lua
File metadata and controls
32 lines (24 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-- Capabilities string
-- Part of Live Simulator: 2
-- See copyright notice in main.lua
-- luacheck: read_globals DEPLS_VERSION
-- luacheck: read_globals DEPLS_VERSION_NUMBER
local ls2x = require("libs.ls2x")
return function()
local bld = {}
-- Query capabilities
if os.getenv("LLA_IS_SET") then
-- From modified Openal-Soft
bld[#bld + 1] = "LLA:"..os.getenv("LLA_BUFSIZE").."smp/"..os.getenv("LLA_FREQUENCY").."Hz"
end
if jit and jit.status() then
bld[#bld + 1] = "JIT"
end
if package.preload.lvep then
bld[#bld + 1] = "FFXNative"
end
if ls2x.libav and ls2x.libav.startEncodingSession then
bld[#bld + 1] = "VideoRender"
end
return table.concat(bld, " ")
end