Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42454

about mciSendString(): testing if is playing

$
0
0
i have these code for test if the music is playing:
Code:

public: bool IsPlaying()
        {
                char mcidata[129]; // Data is returned by some MCI requests
                int mcidatalen=sizeof(mcidata)-1;
               
                mciSendString("status mode",mcidata,mcidatalen,NULL);
                if (!stricmp(mcidata,"playing") == 0)
                        return TRUE;
                else
                        return FALSE;
        }

these code isn't correct. can anyone advice me?

Viewing all articles
Browse latest Browse all 42454

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>