Preserve voice autoplay ordering while decoding in a worker

This commit is contained in:
evgeny committed 2026-10-01 18:29:43 +03:00
1 parent 172cc3a649
commit 318d72708c
3 files changed
+6 -3

No files matched your search

+1
View File
@@ -86,6 +86,7 @@ static unsigned s_decodeGeneration = 0; /* Только GUI-поток. */
static bool s_decoding = false;
void VoicePlayer::cancelPending() { s_decodeGeneration++; }
bool VoicePlayer::isPreparing() { return s_decoding; }
/* Декодирование и выделение PCM выполняются в worker; GUI принимает готовый буфер. */
void VoicePlayer::playOpusFile(const QString& filePath, QObject* context, std::function<void(float)> ready) {