serenity/Base
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
..
etc Base: Move user nona from group 200 into existing group users 2023-05-20 14:40:24 +02:00
home/anon AudioServer+Userland: Separate audio IPC into normal client and manager 2023-06-25 00:16:44 +02:00
res Base: Add a new quote to the fortunes database 2023-06-24 19:13:42 +03:30
root Base: Remove UserspaceEmulator from the list of manual pages to verify 2022-12-28 11:53:41 +01:00
usr AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
www Base: Improve default WebServer pages 2022-02-23 21:28:17 +00:00
.gitignore Meta: Don't generate emoji.txt into the source tree 2022-09-05 09:50:31 -04:00