Remove memory allocations in sound generation path.
commit996cced41039bab5c0b607bc0fa1d52498b01fad
authorNedko Arnaudov <nedko@arnaudov.name>
Sat, 17 Jan 2009 14:09:29 +0000 (17 16:09 +0200)
committerNedko Arnaudov <nedko@arnaudov.name>
Sat, 17 Jan 2009 14:09:29 +0000 (17 16:09 +0200)
tree9afbfd714b847c2dc0c310cbceee4206ebedbc34
parent41327d4373f934781b07d9e47f80719471ebd7d3
Remove memory allocations in sound generation path.

Memory allocations are sleepy and should not be used for realtime
purposes. So we preallocate. With default engine parameters (60 note
polyphony, 8 voices per note) memory usage is about 2 MiB. 2 MiB is
not much for modern computers.
addnote.cpp