Preserve voice autoplay ordering while decoding in a worker
This commit is contained in:
1 parent
172cc3a649
commit
318d72708c
3 files changed
+6
-3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user