ladybird/Userland
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
..
Applets ClipboardHistory: Use i32 config change listener 2023-06-27 15:37:00 +01:00
Applications AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
BuggieBox Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
Demos LibGUI+Userland: Port StatusBar::text() and set_text functions to String 2023-06-15 13:53:22 +01:00
DevTools HackStudio: Use StringView in DiffViewer::draw_line 2023-06-26 19:26:34 +02:00
DynamicLoader Everywhere: Resolve conflicts with LibC and libc++ 2023-06-27 12:40:38 +02:00
Games Userland: Convert config listener callbacks to use StringView 2023-06-27 15:37:00 +01:00
Libraries AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
Services AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
Shell Shell: Handle (most) errors in the parsers 2023-07-01 17:01:54 +03:30
Utilities AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
CMakeLists.txt Userland: Add the BuggieBox program 2022-11-26 12:41:47 -07:00