nisrulz / zentone

:sound: [Android Library] Easily generate audio tone of a specific frequency and volume in Android.
http://nisrulz.github.io/zentone
Apache License 2.0
116 stars 28 forks source link

Can't generate two frequency at the same #5

Closed nrbKarlo closed 2 years ago

nrbKarlo commented 7 years ago

Can't generate two tone frequency at the same time

ZenTone.getInstance().generate(300, 2, 0.5f, toneStoppedListener());

ZenTone.getInstance().generate(500, 2, 0.5f, toneStoppedListener());

nisrulz commented 2 years ago

It was not possible earlier because ZenTone was a Singleton. This is changed now with the new release v2.0.0.

Now it is possible to instantiate multiple instances of ZenTone.