Originally posted by wondwosen Getachew:
Hello,
I am trying to process an audio file,but the size of the music file about 72.3Mb,when i am trying to run it, it displays: java.lang.OutOfMemoryError:
java heap space.So what is the problem,Can't I process this much amount of data size.
Thanks
Well,
See, you have 72.5 Mb file now and getting problem , you can solve this by increaing the heap. But what, in future if you need 1000Mb what will you do?
So the best solution is packet method or divide and get. Let one
thread play the song and another thread assist in getting the data in packets to play.
Make any solution KISS (keep it simple).
Thank you.
