Sign in to follow this  
Days

DirectMusic Randomizing WAV tracks

Recommended Posts

I am trying to randomize background music tracks using DirectMusic. The problem I am having is determining if a previous track is finished playing or not. I have tried using GetLatencyTime, and comparing it to GetTime, Pseudo-- if(performance->GetTime > performance->GetLatencyTime && performance->IsPlaying != S_OK) play next track; if I do not check the latency time, performance->IsPlaying returns false prematurely. But once the time has passed, IsPlaying always returns S_OK, regardless if the track has actually stopped or not.. thus never reaching the code to play the next track. Anybody have any experience with this? Thanks Shane

Share this post


Link to post
Share on other sites
I think I had some timing problems with DirectMusic, but it was a while ago when I was using it, can't really remember. I think I might have had to implement my own timing class to keep track of when tracks were playing and when they weren't. I'll check when I get home.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this