[β οΈ JOURNEY] Building MP3 AI Manager for Music Hoarders (Day 26)

Day 26
Hours worked/Total: 2/71
Day Recap
Switched audio libraries achieving near-instant playback speeds. Added pause functionality, tackled issues with lingering processes, and learned the importance of proper low-level cleanup in desktop apps.
What I Did
- Switched audio libraries to more low-level and code-heavy one
- Faced issues where audio playback wouldn’t stop, even after disposing of the audio stream.
- Discovered the importance of calling cleanup functions before starting new playback sessions.
- Fixed hanging processes by adding explicit cleanup logic to properly release resources.
- Added pause functionality:
- Implemented a pause feature alongside play/stop controls.
- Ensured smooth transitions between play, pause, and stop states without leaving orphaned processes in the background.
Remarks
Switching from a high-level framework to low level library—more freedom but more responsibility.
The biggest lesson? Desktop apps don’t manage themselves.
You have to manually clean up after every process, or you’ll end up with zombie tasks haunting your app.
Next Goals
Look at the waveform implementation.