AudioWaves icon indicating copy to clipboard operation
AudioWaves copied to clipboard

Can't stop listening

Open corentinc opened this issue 6 years ago • 4 comments

Hi!

Thank you a lot for your sharing your work!

stopListening() does nothing. The visualizer is still updated.

Context : I want to start listening when I click on the start button, then stop when I click on another button.

Did anybody face this behavior?

public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
    view = inflater.inflate(R.layout.record_sound, container, false);
    visualizer = view.findViewById(R.id.visualizer);

    view.findViewById(R.id.start).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            visualizer.startListening();
        }
    });

    view.findViewById(R.id.stop).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            visualizer.stopListening();
        }
    });
    return view;
}

corentinc avatar Dec 18 '17 05:12 corentinc

i also faced same problem.need help

damithasrimevan avatar Feb 02 '18 12:02 damithasrimevan

Same here

HarisHoulis avatar Feb 28 '18 15:02 HarisHoulis

you can use https://github.com/CarGuo/RecordWave

damithasrimevan avatar Mar 01 '18 07:03 damithasrimevan

Hello, Thank you for hard work!

I face the exact same problem as @corentinc, anyone have a solution for this?

josephjesseyoung avatar Apr 30 '18 12:04 josephjesseyoung