Implement/match most of MxVideoPresenter (#280)

* Bootstrap MxMediaPresenter

* Implement/match MxMediaPresenter::Tickle and related

* Implement AppendChunk and Enable

* Implement/match most of MxVideoPresenter

* Add missing offset
This commit is contained in:
Christian Semmler
2023-11-14 15:25:14 -05:00
committed by GitHub
parent c626f18b03
commit d8bf4aebf4
5 changed files with 232 additions and 46 deletions

View File

@@ -129,7 +129,7 @@ void MxMediaPresenter::StreamingTickle()
else if (m_action->GetFlags() & MxDSAction::Flag_Looping) {
AppendChunk(m_currentChunk);
if (!MxPresenter::IsEnabled()) {
if (!IsEnabled()) {
m_subscriber->FUN_100b8390(m_currentChunk);
m_currentChunk = NULL;
}
@@ -141,7 +141,7 @@ void MxMediaPresenter::StreamingTickle()
// OFFSET: LEGO1 0x100b5e10
void MxMediaPresenter::RepeatingTickle()
{
if (MxPresenter::IsEnabled() && !m_currentChunk) {
if (IsEnabled() && !m_currentChunk) {
if (m_cursor)
if (!m_cursor->Next(m_currentChunk))
m_cursor->Next(m_currentChunk);
@@ -173,7 +173,7 @@ void MxMediaPresenter::DoneTickle()
// OFFSET: LEGO1 0x100b6030
void MxMediaPresenter::Enable(MxBool p_enable)
{
if (MxPresenter::IsEnabled() != p_enable) {
if (IsEnabled() != p_enable) {
MxPresenter::Enable(p_enable);
if (p_enable) {