On 08/27/2014 08:21 PM, Ian Sannar wrote:
> Here guys. The google doc is temporary, but it's a start.
> https://docs.google.com/document/d/1Xux-lIqNra-Mi_2_qr8Gs3za9dUB2q6xaiSIh1_Ww18/edit?usp=sharing
float[] GenerateMouthWave(int wavetableQuality, float mouth)
Return type should be float *, ie. a pointer to floats.
float[] wavetable = new float[wavetableQuality];
Same here. Replace float[] with float*. Also remember that a new
statement requires a corresponding delete statement somewhere else in
the code - otherwise your code will leak memory.
for (int i = 0; i < 1; i += step)
This loop will either only iterate once, or it'll get stuck in infinite
loop. Pop quiz... can you spot why?
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel