Open goodrickstar opened 5 years ago
@wangfengye Hifi is great, but seems like it having error, sir can you look at it? 可以看一看吗大哥?
你改下HiFiVisualizer 的第100行 int lastPoint = i*mpoints/360 -1; if(lastPoint<0) lastPoint =0
---Original--- From: "Ken choong"<notifications@github.com> Date: Wed, Aug 26, 2020 14:06 PM To: "gauravk95/audio-visualizer-android"<audio-visualizer-android@noreply.github.com>; Cc: "maple"<1040441325@qq.com>;"Mention"<mention@noreply.github.com>; Subject: Re: [gauravk95/audio-visualizer-android] HIFI index out of bounds error (#9)
@wangfengye Hifi is great, but seems like it having error, sir can you look at it? 可以看一看吗大哥?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Trying to use this library to implement the HiFiVisualizer. Everything works well with the CirlcleLineVisiualizer. Simply switching to HiFi causes an index out of bounds error. Code below..
private HiFiVisualizer visualizer;
visualizer = findViewById(R.id.blast);
MediaPlayer is in a background service and passes sessionId to MainActivity through Interface like so
Like I said before, everything works great when using CircleLine or Blast. Changing the XML from CirlcleLine to HiFi along with the global variable in the MainActivity to match compliles fine, runs, and causes the following crash.
Am I missing something here? The audio format is M4A (MPEG_4_Audio)