FireZenk / FireZenk/AudioWaves
Can't stop listening
- Dominant language
- Java
- Stars
- 826
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
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?
```java
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;
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.