Checklist
Affected app version
1.7.0
Affected Android/Custom ROM version
any
Affected device model
any
How did you install the app?
Built from source
Steps to reproduce the bug
- Select MP3 as the recording format
- Start recording
- Pause recording
Expected behavior
When recording is paused, the recording thread should get blocked waiting on e.g. a condition variable or some other suitable synchronization object.
Actual behavior
The recording thread busy loops while checking the isPaused variable. This can cause unnecessary battery drain.
Screenshots/Screen recordings
No response
Additional information
This is where the busy loop is: https://github.com/FossifyOrg/Voice-Recorder/blob/main/app/src/main/kotlin/org/fossify/voicerecorder/recorder/Mp3Recorder.kt#L82.
Checklist
Affected app version
1.7.0
Affected Android/Custom ROM version
any
Affected device model
any
How did you install the app?
Built from source
Steps to reproduce the bug
Expected behavior
When recording is paused, the recording thread should get blocked waiting on e.g. a condition variable or some other suitable synchronization object.
Actual behavior
The recording thread busy loops while checking the
isPausedvariable. This can cause unnecessary battery drain.Screenshots/Screen recordings
No response
Additional information
This is where the busy loop is: https://github.com/FossifyOrg/Voice-Recorder/blob/main/app/src/main/kotlin/org/fossify/voicerecorder/recorder/Mp3Recorder.kt#L82.