本文整理汇总了C++中OMXPlayerSubtitles::Pause方法的典型用法代码示例。如果您正苦于以下问题:C++ OMXPlayerSubtitles::Pause方法的具体用法?C++ OMXPlayerSubtitles::Pause怎么用?C++ OMXPlayerSubtitles::Pause使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OMXPlayerSubtitles
的用法示例。
在下文中一共展示了OMXPlayerSubtitles::Pause方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
break;
case 'd':
if(m_has_subtitle && m_player_subtitles.GetVisible())
{
m_player_subtitles.SetDelay(m_player_subtitles.GetDelay() - 250);
PrintSubtitleInfo();
}
break;
case 'f':
if(m_has_subtitle && m_player_subtitles.GetVisible())
{
m_player_subtitles.SetDelay(m_player_subtitles.GetDelay() + 250);
PrintSubtitleInfo();
}
break;
case 'q':
m_stop = true;
goto do_exit;
break;
case 0x5b44: // key left
if(m_omx_reader.CanSeek()) m_incr = -30.0;
break;
case 0x5b43: // key right
if(m_omx_reader.CanSeek()) m_incr = 30.0;
break;
case 0x5b41: // key up
if(m_omx_reader.CanSeek()) m_incr = 600.0;
break;
case 0x5b42: // key down
if(m_omx_reader.CanSeek()) m_incr = -600.0;
break;
case ' ':
case 'p':
m_Pause = !m_Pause;
if(m_Pause)
{
SetSpeed(OMX_PLAYSPEED_PAUSE);
m_av_clock->OMXPause();
if(m_has_subtitle)
m_player_subtitles.Pause();
}
else
{
if(m_has_subtitle)
m_player_subtitles.Resume();
SetSpeed(OMX_PLAYSPEED_NORMAL);
m_av_clock->OMXResume();
}
break;
case '-':
m_player_audio.SetCurrentVolume(m_player_audio.GetCurrentVolume() - 300);
printf("Current Volume: %.2fdB\n", m_player_audio.GetCurrentVolume() / 100.0f);
break;
case '+':
m_player_audio.SetCurrentVolume(m_player_audio.GetCurrentVolume() + 300);
printf("Current Volume: %.2fdB\n", m_player_audio.GetCurrentVolume() / 100.0f);
break;
default:
break;
}
if(m_Pause)
{
OMXClock::OMXSleep(2);
continue;
}