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

Waveforms of no sound at all appear at their max size instead of their min size #43

Closed
noygafni opened this issue May 16, 2022 · 5 comments · Fixed by #99
Closed

Waveforms of no sound at all appear at their max size instead of their min size #43

noygafni opened this issue May 16, 2022 · 5 comments · Fixed by #99
Labels
bug Something isn't working help wanted

Comments

@noygafni
Copy link

My code:

@override
  void initState() {
    super.initState();
    _recorderController = RecorderController();
    _recorderController.record();
  }

...

AudioWaveforms(
    size: const Size(230, 50),
    recorderController: _recorderController,
    waveStyle: const WaveStyle(
      waveColor: Colors.pink,
      spacing: 8.0,
      extendWaveform: true,
      showMiddleLine: false,
   ),
)

For some reason the wave forms of absolute silence appear at max size.
Here is a photo - took the screenshot when there was no sound at all
no sound bug

It is important to mention that when there is sound the waveforms seems to work as expected.

@ujas-m-simformsolutions
Copy link
Collaborator

From your this #44 issue I see you are using an emulator. Can you please test it on a real device because android emulators behave weirdly in different scenarios?

@renankanu
Copy link

Here the same thing happens, I tested it on a real device.

@renankanu
Copy link

Adding this ..normalizationFactor = 40, works here for me. The default for android is 60.

@noygafni
Copy link
Author

That seems to improve this, thank you so much

@noygafni
Copy link
Author

Acutely after a lot of testing setting the ..normalizationFactor = 40 is still not good enough. for some reason the sound waves does not react correctly to my voice. further more when I play the recording using AudioFileWaveforms the sound waves look completely different than the sound waves while recording. I think it is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants