Both are two issues related to the Lua language. To call methods, use “:” instead of “.”
-> sample_buffer:create_sample_data(96000, 32, 1, 1);
and Lua counts from 1, so 1 is the first sample in the list.
See Lua tips for more info.
Also see
for some sample buffer examples.