libtt: Fix excessive memory usage bug
authorDaniel Thompson <daniel@redfelineninja.org.uk>
Thu, 3 Jan 2013 18:37:53 +0000 (18:37 +0000)
committerDaniel Thompson <daniel@redfelineninja.org.uk>
Thu, 3 Jan 2013 18:37:53 +0000 (18:37 +0000)
commitb22d73793344dfda0e0877ba5e095e054727d403
treeaabd143fed5d71a591f249c6d64cb10f704fe960
parentb3675c7e63c588cda61babae839ca3fbe218ef98
libtt: Fix excessive memory usage bug

The control arrays were stupidly over-specified because the MAX macros
had not been converted into ID form when declaring the array.

We also fix a similar bug that the compiler detected as soon as the arrays
were reduced to the correct size.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
src/libtt/include/libtt/drummachine.h
src/libtt/include/libtt/preamp.h
src/libtt/include/libtt/template.h
src/libtt/include/libtt/tonestack.h
src/libtt/preamp.c
tests/presettest.c