In phoco, there are 3 functions I think I can use (CheckPlayerStatus, PausePlayer, and ResumePlayer), but those are private. To use them, I have to make it public. Within the pause and resume, it only low/raise the master volume for other player and then call to pause and resume winamp. That is a little "weird" for the purpose of this mod. Unless I go in and modify that piece of code which I don't want to.
The code that check for status of winamp is 1 line that call a function and set. I am okay with that.
The part that I am not okay is what about other player?
This portion will be constantly running. Checking more than just a flag is something I don't really like. That will slow down thing in RR. RR is already slow and I don't want to put another load into it.
I try to look at the resume, pause, play, stop commands in RoadRunner and set the flag (right now, when pause/resume, I set/checked the flag), but that throw me in a loop of PAUSE.
Basically right now this is what I did.
Now instead of If (isPlayerPause) Then
If WavVolDif > 0 Then
If (CBool(UseVars("PauseOnVoice")) And Not isPlayerPause) Then Call Exec("-IGPAUSE-", Menus(IsLoaded(CurSCR))): isPlayerPause = True
'----- Code to switch screen -----
If (isPlayerPause) Then Call Exec("-IGRESUME-", Menus(IsLoaded(CurSCR))): isPlayerPause = False
'----- Code to set switch timer -----
I can do this if WinAMP_GetStatus = "PAUSED" then
But for video/buildin DVD If frmMP.Status = "PAUSE" Then
FM Radio, Sirus Radio, TV, .... you name it.
And IGRESUME/IGPAUSE are custom command and they can be anything.
You see why I use my own flag isPlayerPause