Skip to content

BUG: Waveform animation runs continuously even when mic is disabled, causing unnecessary CPU usage #140

@dhruvi-16-me

Description

@dhruvi-16-me

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

  1. Open the chat screen where the waveform animation is displayed
  2. Enable the microphone / start listening
  3. Disable the microphone or stop listening
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions