bogerchan / Nier-Visualizer

A lightweight and efficient Android visual library.
Apache License 2.0
576 stars 75 forks source link

MediaRecorder does not show rendering #6

Closed naseermohammad closed 6 years ago

naseermohammad commented 6 years ago

When I try using this along with MediaRecorder as follows:

this.nierVisualizerManager = new NierVisualizerManager();
this.nierVisualizerManager.init(1); // For MIC inout - Is that the right value?
this.nierVisualizerManager.start(this.audioVisualizer,new IRenderer[]{new CircleRenderer(true),new CircleBarRenderer(),new ColumnarType4Renderer()});

I see no activity getting registered in the view, the view stays static.

Does it support the MIC input channel for showing Visualization or is it meant only for Audio Output.

bogerchan commented 6 years ago

Hi, naseermohammad, thanks for use this library, I use Visualizer to receive wave or fft data, It seems to just support MediaPlayer or AudioTrack, is there a way to receive wave data from MediaRecorder ? If can, I will support it. :)

naseermohammad commented 6 years ago

Got it, I will switch to AudioRecord via which I can have access to WaveForm.

Thanks Naseer

On Tue, Sep 4, 2018 at 10:43 PM Boger Chan notifications@github.com wrote:

Hi, naseermohammad, thanks for use this library, I use Visualizer https://developer.android.com/reference/android/media/audiofx/Visualizer to receive wave or fft data, It seems to just support MediaPlayer or AudioTrack, is there a way to receive wave data from MediaRecorder ? If can, I will support it. :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bogerchan/Nier-Visualizer/issues/6#issuecomment-418589871, or mute the thread https://github.com/notifications/unsubscribe-auth/ADzqG_mRiOpN4g50i8rI6VW9hIAgVouZks5uX0hRgaJpZM4WWr79 .

bogerchan commented 6 years ago

ok, if need any support, please contact me. :)

naseermohammad commented 6 years ago

Hi Bogerchan,

I have the waveform from AudioRecord how can I link this to NierVisualizerManager. Seems like it is not automatically picking the waveform from from AudioSource (in this MIC).

I am accessing NierVisualizerManager using Java, if you can show me how to link NierVisualizerManager with AudioRecord objects WaveForm data that would be great.

Thanks Naseer

bogerchan commented 6 years ago

Hi, naseermohammad, thanks for your advice, I have been support it in v0.1.0, please try it. :) PS: I have been write pcm wave data code in module Demo for reference.

jmimohsin commented 6 years ago

Update Jitpack as well and doc please.

bogerchan commented 6 years ago

All work is done, please try it. :)

naseermohammad commented 6 years ago

Thank you so much, will try today.

On Wed, Sep 19, 2018, 9:02 AM Boger Chan notifications@github.com wrote:

All work is done, please try it. :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bogerchan/Nier-Visualizer/issues/6#issuecomment-422815729, or mute the thread https://github.com/notifications/unsubscribe-auth/ADzqG8RBYQC_dlk37A6Mcp20-Qcwc1ZHks5uck5dgaJpZM4WWr79 .