aboutsummaryrefslogtreecommitdiffhomepage
path: root/sndfile-stream.lua
AgeCommit message (Collapse)AuthorFilesLines
2024-03-27replaced Stream:foreach() with Stream:iter()Robin Haberkorn1-2/+2
* This allows the native syntax `for f in Stream:iter() do ... end` without using lambda functions. Also you can use `break` and `return` statements. * On the other hand we cannot exploit the extended xpcall() semantics and had to introduce another lambda in Stream:play(). * In general the number of function calls per tick stays the same. Stream:gtick() itself could be used as an iterator, but Stream:iter() adds checking for CTRL+C, resetting of the sample cache and binding functions.
2023-09-15documentation updateRobin Haberkorn1-0/+1
2023-09-13added LDoc documentationRobin Haberkorn1-6/+40
* gives a useful overview of everything supported right now * especially the type documentation is useful, as these things are not self-evident in Lua (because of dynamic typing). * The LDoc page can later be published as the Github pages of the project. This can even be done automatically by a Github action. However, we should first make sure that it's okay to publish the project before defending the thesis since Github pages will always be public even for private repositories. * Documentation of command-line parameters is lacking (TODO). * It may be possible to use types like "Stream(number)" to describe streams of numbers. The LDoc documentation mentions boxed types. Perhaps there can even be Streamable(number)? * We are also lacking good example programs and/or introductory material.
2023-09-05libsndfile related classes moved into sndfile-stream.luaRobin Haberkorn1-0/+100