perfect streaming music decision

BlitzMax Forums/BlitzMax Programming/perfect streaming music decision

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm thinking about creating an engine for allowing people to load certain BGM (BackGround Music) to any BlitzMAX projects.

What I'm attempting to do is to support 3 different types of playback: play once, looping only, or intro and looping. The intro and looping part requires perfect timing to switch from the intro part of the song to the looping part of the song. That means, if I were attempt to create the engine using basic BlitzMAX coding, it may cause a small gap when switching. It may not be noticeable in a fastest computer, but noticeable when the application becomes inactive or very slow.

Would creating a module be the best way for running the engine in the "background" during the project's runtime?