mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 14:37:41 +00:00
Compare commits
2 Commits
OPENURU_BU
...
ticket/50
Author | SHA1 | Date | |
---|---|---|---|
ebfc0deceb | |||
fb96b2b03c |
@ -117,7 +117,8 @@ void plWin32Sound::Update()
|
||||
uint32_t currentTimeMs = (uint32_t)(GetActualTimeSec() * 1000.0f);
|
||||
if (currentTimeMs <= srtReader->GetLastEntryEndTime()) {
|
||||
while (plSrtEntry* nextEntry = srtReader->GetNextEntryStartingBeforeTime(currentTimeMs)) {
|
||||
if (plgAudioSys::AreSubtitlesEnabled()) {
|
||||
float currVol = QueryCurrVolume();
|
||||
if (plgAudioSys::AreSubtitlesEnabled() && currVol > 0.01f) {
|
||||
// add a plSubtitleMsg to go... to whoever is listening (probably the KI)
|
||||
plSubtitleMsg* msg = new plSubtitleMsg(nextEntry->GetSubtitleText(), nextEntry->GetSpeakerName());
|
||||
msg->Send();
|
||||
|
Reference in New Issue
Block a user