I am using this library to play a sound very rapidely (up to every 200ms), and it randomly crash at some point.
Looking for this issue online, I have found a fix :
The Tone Grenerator must be released after each use with the following function : toneGenerator.release();
I am using this library to play a sound very rapidely (up to every 200ms), and it randomly crash at some point.
Looking for this issue online, I have found a fix : The Tone Grenerator must be released after each use with the following function : toneGenerator.release();
You can find the explaination here : https://stackoverflow.com/questions/13463691/error-generating-beep-using-tonegenerator-class
I have tested the fix and it worked well for me so I will do a pull request for this fix.