diff options
-rw-r--r-- | pcmplayer.c | 11 | ||||
-rw-r--r-- | pcmplayer.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/pcmplayer.c b/pcmplayer.c index 162c654..2a51877 100644 --- a/pcmplayer.c +++ b/pcmplayer.c @@ -656,6 +656,17 @@ bool mgPCMPlayer::GetIndex (int ¤t, int &total, bool snaptoiframe) { return false; } +bool mgPCMPlayer::GetReplayMode(bool &Play, bool &Forward, int &Speed) { + Speed = -1; + Forward = true; + switch(PlayMode()) { + case pmPlay: Play = true; break; + default: + Play = false; break; + } + return true; +} + void mgPCMPlayer::internShowMPGFile() { if (!imagefile.size()) return; diff --git a/pcmplayer.h b/pcmplayer.h index ae6558b..33edef7 100644 --- a/pcmplayer.h +++ b/pcmplayer.h @@ -219,6 +219,7 @@ class mgPCMPlayer : public cPlayer, cThread virtual bool GetIndex (int &Current, int &Total, bool SnapToIFrame = false); // bool GetPlayInfo(cMP3PlayInfo *rm); // LVW + virtual bool GetReplayMode(bool &Play, bool &Forward, int &Speed); void ReloadPlaylist(); void NewPlaylist (mgSelection * plist); |