h6ah4i / android-openslmediaplayer

Re-implementation of Android's MediaPlayer and audio effect classes based on OpenSL ES APIs.
https://openslmediaplayer.h6ah4i.com
Apache License 2.0
417 stars 97 forks source link

Unable to use StandardVisualizer with output mix (sessionId 0) #57

Open bloodyraoul opened 6 years ago

bloodyraoul commented 6 years ago

Hello, When I try to use the library with sessionId 0, i receive empty audio data in onWaveFormDataCapture or onFftDataCapture. This occurs only on some devices, like a Nexus 6P. I have the bug with the Visualizer class and I was hoping this library fix the issue because you tell it in the readme. Or maybe I didnt understood something or not use it the good way ?

My code to init the visualizer is : IMediaPlayerFactory factory = new StandardMediaPlayerFactory(getContext().getApplicationContext()); IVisualier visualizer = factory.createVisualizer(0);

something wrong ? thank you for your help

doktormerlin commented 6 years ago

I'm having exactly the same issue in my OnePlus 3T with Oreo