Don't understand README
leshark opened this issue · comments
recorder = OmRecorder.wav( new PullTransport.Default(mic(), new PullTransport.OnAudioChunkPulledListener() { @Override public void onAudioChunkPulled(AudioChunk audioChunk) { animateVoice((float) (audioChunk.maxAmplitude() / 200.0)); } }), file());
What should be in animateVoice() method? i don't see any implementation of it!
@leshark like this:
private void animateVoice(final float maxPeak) { recordButton.animate().scaleX(1 + maxPeak).scaleY(1 + maxPeak).setDuration(10).start(); }
I’ve waited for 4 years! Finally! (Really, not, I do not even write for android anymore XD)
But still, hope this will help someone
@leshark I answered for exactly this reason, good luck