Big duration makes app crash because OOM
vitovalov opened this issue · 2 comments
vitovalov commented
I wanted to play sound for long time period so I tried TimeUnit.MINUTES.toSeconds(100)
That caused OOM because of allocation too much memory.
nisrulz commented
@vitovalov thanks for reporting this. I will look into it.
nisrulz commented
The new release doesn't care about the "Duration". It lets the user decided when they want to stop the audio from playing by simply calling stop()
on the ZenTone
instance.
Closing as the ticket is irrelevant now.