void scheduler_OnTimer() { if (audio_decoder_->isBusy() == false) { void *data = stream_->ReadAudio(); if (data != nullptr) audio_decoder_->Decode(data); } if (audio_renderer_->isBusy() == false) { void *data = audio_decoder_->getDecodeData(); if (data != nullptr) audio_renderer_->AudioOut(data); } int position = audio_decoder_->getPosition(); void *data = stream_->ReadVideo(position); if (data != nullptr) video_decoder_->Deocde(data); }