aboutsummaryrefslogtreecommitdiffhomepage
path: root/applause.lua
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-12-31 15:33:13 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-12-31 15:33:13 +0100
commit856c775316dbcdba36acfab1a3c300b0372d8ecf (patch)
treeaad78e5f902bab4e22b3c54b8362b38208291ec2 /applause.lua
parent3b409db5f23a6f4f39467e05f9edf0963721d3ed (diff)
downloadapplause2-856c775316dbcdba36acfab1a3c300b0372d8ecf.tar.gz
support only LuaJIT and use some additional (insignificant) optimizations
Diffstat (limited to 'applause.lua')
-rw-r--r--applause.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applause.lua b/applause.lua
index c701bc3..644c23d 100644
--- a/applause.lua
+++ b/applause.lua
@@ -2,7 +2,7 @@ local sndfile = require "sndfile"
local ffi = require "ffi"
local bit = require "bit"
--- Make table.new() available
+-- Make table.new() available (a LuaJIT extension)
require "table.new"
--
@@ -336,7 +336,7 @@ function Stream:totable()
end
local tick = self:tick()
- local vector = {}
+ local vector = table.new(self:len(), 0)
while true do
local value = tick()