Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't stop listening #13

Open
corentinc opened this issue Dec 18, 2017 · 6 comments
Open

Can't stop listening #13

corentinc opened this issue Dec 18, 2017 · 6 comments

Comments

@corentinc
Copy link

corentinc commented Dec 18, 2017

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;
}
@damithasrimevan
Copy link

damithasrimevan commented Feb 2, 2018

i also faced same problem.need help

@HarisHoulis
Copy link

Same here

@damithasrimevan
Copy link

@josephjesseyoung
Copy link

Hello, Thank you for hard work!

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

@nitish1227
Copy link

I also face same issue. not stop listening working.

@xi23da
Copy link

xi23da commented Aug 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants