rmbrone / flutter_audio_recorder

Flutter plugin that can support audio recording and level metering
MIT License
119 stars 150 forks source link

Recorder stops recieving audio if the screen is off and exceeds memory limit [Android] #51

Closed Maksim-Nikolaev closed 4 years ago

Maksim-Nikolaev commented 4 years ago

When the screen turns off, the memory usage sets to 10mb, and then goes up to the maximum, then stops to record audio. Just for info, I'm using audioFormat: AudioFormat.WAV, sampleRate: 44100

1) The memory usage when the screen is on (works fine) image 2) The memory usage when the scree is off image 3) Flutter doctor output

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.19041.208], locale ru-RU)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc4)
[√] Android Studio (version 4.0)
[√] Connected device (1 available)

• No issues found!
Maksim-Nikolaev commented 4 years ago

I tried out isolates but it seems like the issue is not related to memory limit image

Maksim-Nikolaev commented 4 years ago

The problem is about Android killing the application and has nothing to do with memory. https://stackoverflow.com/questions/57363140/audio-stops-recording-after-a-minute