Compensate silence duration when sonic enabled

This commit is contained in:
Yury Popov
2022-11-08 17:54:49 +03:00
parent 61de330443
commit 9f0b23f49e
+4
View File
@@ -918,6 +918,10 @@ static int PlaySilence(int length, bool resume)
if (length == 0)
return 0;
#if HAVE_SONIC_H
length = (int)(length * sonicSpeed);
#endif
if (resume == false)
n_samples = length;