-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
📌 Issue Overview
The waveform animation continues running even when the microphone is disabled or not listening. The animation controller is started with _waveformController.repeat() but is never stopped, leading to unnecessary CPU/GPU usage.
🔍 Steps to Reproduce
- Open the chat screen where the waveform animation is displayed
- Enable the microphone / start listening
- Disable the microphone or stop listening
- Observe that the waveform animation continues running
🎯 Expected Behavior
The waveform animation should stop when the microphone is disabled or listening ends, and only run while the mic is active.
🚨 Actual Behavior
The waveform animation keeps running continuously even when the microphone is not listening, consuming unnecessary CPU/GPU resources.
📷 Screenshot
WhatsApp.Video.2026-01-25.at.2.48.28.AM.mp4
If you look closely that initially when I was not speaking it was showing the waveform. Also I think that the waveform should be more vivid for better user experience
💡 Suggested Improvements
-
Stop the animation controller when the microphone is disabled or listening stops:
_waveformController.stop(); -
Start the animation conditionally based on the microphone/listening state instead of calling
repeat()unconditionally.
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue