-
Notifications
You must be signed in to change notification settings - Fork 67
Description
Hi.
I found an issue that when trying to create CheapSoundFile object for short WAV file it crashes.
It happened for WAV files with duration 5 and 20 seconds.
Here is the stack trace:
java.lang.ArrayIndexOutOfBoundsException: length=1024; index=1024 at com.semantive.waveformandroid.waveform.soundfile.WavFile.readFramesInternal(WavFile.java:276) at com.semantive.waveformandroid.waveform.soundfile.WavFile.readFrames(WavFile.java:266) at com.semantive.waveformandroid.waveform.soundfile.CheapWAV.ReadFile(CheapWAV.java:103) at com.semantive.waveformandroid.waveform.soundfile.CheapSoundFile.create(CheapSoundFile.java:100) at com.appunite.zumba.view.playlist.addsoundeffect.SoundEffectActivity.onCreate(SoundEffectActivity.java:118) at android.app.Activity.performCreate(Activity.java:6682) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2619) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)