Well, the code looks OK to me at first glance -- although I obviously don't know what aae->getBuffers() will return -- hopefully, the current processing block.
Yes actually it's the buffer (jack_default_audio_sample_t[2][128]) from the jack process.
When you say "the first two values keep increasing over time", do you mean the first two values in each returned column? i.e. features[0][0].values[0] and features[0][0].values[1] ?
yes exactly
If so, I can't suggest any reason for that -- perhaps some example output might make things clearer?
Ok if i don't play any sound (i.e the buffer is empty), the values are 0 0 and they don't change.
When some changes occur in the buffer (a sound is played), the values are really strange at first (45.0 / 345.0 / 11.0)
then they go back to a very little value when the sound stops and start increasing if i don't play any sound :
1 2.70579e-13
0 1.10692e-12
0 7.10114e-12
1 1.7577e-12
0 2.41869e-11
1 6.04672e-11
...
Any ideas ?
Thanks for your answer
Florent