Paul Batchelorimporta901d566 years agoHistory
58 lines · 1.1 KB · Lua
RawDownload
sptbl["in"] = {     files = {        module = "in.c",        header = "in.h",        example = "ex_in.c",    },     func = {        create = "sp_in_create",        destroy = "sp_in_destroy",        init = "sp_in_init",        compute = "sp_in_compute",    },     params = {    },     modtype = "module",     description = [[Reads from standard input.     Expects type of SPFLOAT, which by default is a float. If the input data is larger than the number of samples, you will get a complaint about a broken pipe (but it will still work). If there is no input data from STDIN, it will hang.    The expected use case of sp_in is to utilize pipes from the commandline, like so:    cat /dev/urandom | ./my_program    Assuming my_program is using sp_in, this will write /dev/urandom (essentially white noise) to an audio file.]],     ninputs = 0,    noutputs = 1,     inputs = {        {            name = "dummy",            description = "This doesn't do anything."        },    },     outputs = {        {            name = "out",            description = "Signal output."        },    } }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t