eopeter / flutter_dtmf

DTMF Tone Generator for Flutter Applications.
MIT License
11 stars 20 forks source link

ToneGenerator Crash if called a lot of time rapidely #10

Closed GaelleJoubert closed 10 months ago

GaelleJoubert commented 10 months ago

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.

eopeter commented 10 months ago

Merged. Thank you

GaelleJoubert commented 10 months ago

@eopeter will you publish a 3.1.0 version for the pubspec ? :)

eopeter commented 10 months ago

published 3.0.1 with the changes

GaelleJoubert commented 10 months ago

Thanks a lot :)