Viet Phan X

[⚠️ JOURNEY] Building MP3 AI Manager for Music Hoarders (Day 26)

Author AvatarViet Phan
0
Feb 8, 2025
1 min read

Day 26

Hours worked/Total: 2/71

Avaloniaaudiolibrary

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.

πŸ‘¨β€πŸ’» Software DevelopmentπŸš€ Journey

Got an Idea?

Let's Build It!

I can bring your ideas to life - FREE of charge

Book a free consultation and let’s identify opportunities to turn your vision into a successful business

15 min call

Get idea feedback

from 17+ consultations
?
Usually responds within 24h

If You Like what I do
You can buy me a coffee πŸ‘‡
Send β˜• via PayPalSend β˜• with Bitcoin

πŸ€™ Let's connect

Made by Viet Phan Β© 2018-2025Privacy Policy