Android Visualizer Fft / Waveform Affected By Device Volume?
I'm working on some music analysis using the Visualizer class on Android 2.3.1. I am finding that the FFT and waveform magnitudes are affected by the volume of the device. This mea
Solution 1:
I was also facing the same problem, but it is working when i am enabled the Eqaulizer and Visualizer for same seession id.I dont know the reason for it ,i checked it remove the equalizer from visualizer class in api demos it is working as you said.
EqualizermEqualizer=newEqualizer(0, SessionId);
mEqualizer.setEnabled(true); // need to enable equalizerVisualizermVisualizer=newVisualizer(SessionId);
Solution 2:
There are two options for the Visualizer scaling mode:
SCALING_MODE_AS_PLAYED and SCALING_MODE_NORMALIZED
If you want the Visualizer to be normalized, as in it's consistent no matter what the volume is, then use SCALING_MODE_NORMALIZED.
mVisualizer.scalingMode = Visualizer.SCALING_MODE_AS_PLAYED
Keep in mind though that this drastically changes the values being sent to the Visualizer, so other adjustments may be needed.
Post a Comment for "Android Visualizer Fft / Waveform Affected By Device Volume?"