1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:37:35 +00:00

LibWeb: Update the audio timestamp every 50 ms instead of every 10 ms

The previous update time of 10 ms was set completely arbitrarily, but
puts an unnecessary load on the CPU. This reduces the rate, and it can
be adjusted in future depending on what web pages expect.
This commit is contained in:
Zaggy1024 2023-08-07 03:27:59 -05:00 committed by Andrew Kaster
parent bb156f8133
commit 88190202cc

View file

@ -15,7 +15,7 @@
namespace Web::Platform {
constexpr int update_interval = 10;
constexpr int update_interval = 50;
static Duration timestamp_from_samples(i64 samples, u32 sample_rate)
{