Раздели PCM-сессии и исправь частоту и перемотку звука
This commit is contained in:
1 parent
40b974b29c
commit
217e5795bf
13 files changed
+226
-134
No files matched your search
@@ -35,7 +35,7 @@ int main(int argc, char** argv) {
|
||||
reject(valid.left(14)); // Обрезанный пакет.
|
||||
REQUIRE(file.open(QIODevice::WriteOnly | QIODevice::Truncate)); REQUIRE(file.write(valid) == valid.size()); file.close();
|
||||
bool called = false;
|
||||
VoicePlayer::playOpusFile(path, &app, [&](float) { called = true; });
|
||||
VoicePlayer::playOpusFile(path, &app, [&](float, uint64_t) { called = true; });
|
||||
REQUIRE(VoicePlayer::isPreparing()); VoicePlayer::cancelPending();
|
||||
QElapsedTimer deadline; deadline.start();
|
||||
while (VoicePlayer::isPreparing() && deadline.elapsed() < 5000) { app.processEvents(); QThread::msleep(1); }
|
||||
|
||||
Reference in new issue
Block a user