|
|
@ -115,6 +115,7 @@ void plWin32Sound::Update() |
|
|
|
plSrtFileReader* srtReader = buf->GetSrtReader(); |
|
|
|
plSrtFileReader* srtReader = buf->GetSrtReader(); |
|
|
|
if (srtReader != nullptr) { |
|
|
|
if (srtReader != nullptr) { |
|
|
|
uint32_t currentTimeMs = (uint32_t)(GetActualTimeSec() * 1000.0f); |
|
|
|
uint32_t currentTimeMs = (uint32_t)(GetActualTimeSec() * 1000.0f); |
|
|
|
|
|
|
|
if (currentTimeMs <= srtReader->GetLastEntryEndTime()) { |
|
|
|
while (plSrtEntry* nextEntry = srtReader->GetNextEntryStartingBeforeTime(currentTimeMs)) { |
|
|
|
while (plSrtEntry* nextEntry = srtReader->GetNextEntryStartingBeforeTime(currentTimeMs)) { |
|
|
|
if (plgAudioSys::AreSubtitlesEnabled()) { |
|
|
|
if (plgAudioSys::AreSubtitlesEnabled()) { |
|
|
|
// add a plSubtitleMsg to go... to whoever is listening (probably the KI)
|
|
|
|
// add a plSubtitleMsg to go... to whoever is listening (probably the KI)
|
|
|
@ -124,6 +125,7 @@ void plWin32Sound::Update() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
plSound::Update(); |
|
|
|
plSound::Update(); |
|
|
|
} |
|
|
|
} |
|
|
|