ladybird/Userland/Libraries/LibWeb/Platform
kleines Filmröllchen b4fbd30b70 AudioServer+Userland: Decouple client sample rates from device rate
This change was a long time in the making ever since we obtained sample
rate awareness in the system. Now, each client has its own sample rate,
accessible via new IPC APIs, and the device sample rate is only
accessible via the management interface. AudioServer takes care of
resampling client streams into the device sample rate. Therefore, the
main improvement introduced with this commit is full responsiveness to
sample rate changes; all open audio programs will continue to play at
correct speed with the audio resampled to the new device rate.

The immediate benefits are manifold:
- Gets rid of the legacy hardware sample rate IPC message in the
  non-managing client
- Removes duplicate resampling and sample index rescaling code
  everywhere
- Avoids potential sample index scaling bugs in SoundPlayer (which have
  happened many times before) and fixes a sample index scaling bug in
  aplay
- Removes several FIXMEs
- Reduces amount of sample copying in all applications (especially
  Piano, where this is critical), improving performance
- Reduces number of resampling users, making future API changes (which
  will need to happen for correct resampling to be implemented) easier

I also threw in a simple race condition fix for Piano's audio player
loop.
2023-07-01 23:27:24 +01:00
..
AudioCodecPlugin.cpp AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
AudioCodecPlugin.h AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
EventLoopPlugin.cpp
EventLoopPlugin.h LibWeb+Browser+Ladybird: Use JS::SafeFunction for EventLoop callbacks 2023-04-21 20:44:47 +01:00
EventLoopPluginSerenity.cpp LibWeb+Browser+Ladybird: Use JS::SafeFunction for EventLoop callbacks 2023-04-21 20:44:47 +01:00
EventLoopPluginSerenity.h LibWeb+Browser+Ladybird: Use JS::SafeFunction for EventLoop callbacks 2023-04-21 20:44:47 +01:00
FontPlugin.cpp LibWeb+WebContent: Add abstraction layer for generic font families 2022-09-08 11:57:03 +02:00
FontPlugin.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FontPluginSerenity.cpp LibWeb: Use default system fonts for serif, sans-serif, etc. 2023-01-06 12:02:21 +01:00
FontPluginSerenity.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ImageCodecPlugin.cpp LibWeb+LibWebView+WebContent: Add Web::Platform::ImageCodecPlugin 2022-09-16 15:15:50 +02:00
ImageCodecPlugin.h LibWeb+LibWebView+WebContent: Add Web::Platform::ImageCodecPlugin 2022-09-16 15:15:50 +02:00
Timer.cpp LibWeb: Convert Platform::Timer to JS::SafeFunction 2023-03-07 11:51:12 +00:00
Timer.h LibWeb: Convert Platform::Timer to JS::SafeFunction 2023-03-07 11:51:12 +00:00
TimerSerenity.cpp Userland: Replace remaining Core::Timer::construct()s with try_create() 2023-01-12 11:25:51 +01:00
TimerSerenity.h LibWeb+WebContent: Move Serenity EventLoop and Font plugins into LibWeb 2022-09-21 20:42:36 +01:00