surtecha / karman

The Swiss-army knife of productivity.
https://surtecha.github.io/karman/
GNU General Public License v3.0
87 stars 3 forks source link

Audio Looping Click Interruption in Focus Mode #29

Open phlaster opened 2 weeks ago

phlaster commented 2 weeks ago

Hello,

I am experiencing an issue with the audio looping functionality in the Focus Mode of the application. As I figured out, the SoundManager located in karman_app/lib/manager/sound_manager.dart causes a noticeable clicking interruption between sound loops, (particularly on Android devices). This disrupts the seamless experience that is desired while meditating or focusing on a papers (what I am using your otherwise excellent app for).

I understand that the LoopMode.one is intended to loop the same audio track indefinitely, but the clicking sound suggests that there may be a mismatch at the end and beginning of the audio file.

I would like to suggest implementing a crossfade effect that overlaps the ending of the audio with its beginning.

While I potentially could attempt to fix this issue myself using AI tools, I am not a Dart developer and would prefer to have this addressed by the real app maintainers who have a better understanding of the codebase.

Thank you for your attention to this matter!

surtecha commented 2 weeks ago

Thank you for reporting the issue. I will inspect it and get back to you shortly.

Cheers!