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:
parent
bb156f8133
commit
88190202cc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue