neutrino: add more RC_playpause handling

Origin commit data
------------------
Branch: ni/coolstream
Commit: 764b25542f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-19 (Tue, 19 Dec 2017)

Origin message was:
------------------
- neutrino: add more RC_playpause handling

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-12-19 10:58:44 +01:00
parent 7dbb4d3d0b
commit 938b53bb4b
9 changed files with 62 additions and 30 deletions

View File

@@ -442,6 +442,15 @@ int CAudioPlayerGui::show()
}
g_RCInput->getMsg(&msg, &data, 10); // 1 sec timeout to update play/stop state display
if (msg == CRCInput::RC_playpause)
{
// manipulate msg
if (m_state == CAudioPlayerGui::PAUSE)
msg = CRCInput::RC_play;
else
msg = CRCInput::RC_pause;
}
if (msg == CRCInput::RC_timeout || msg == NeutrinoMessages::EVT_TIMER)
{
int delay = time(NULL) - m_idletime;