ladybird/Userland/Applications/Piano
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
..
ProcessorParameterWidget LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
AudioPlayerLoop.cpp AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
AudioPlayerLoop.h AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
CMakeLists.txt Piano: Rename KnobsWidget to TrackControlsWidget 2023-02-25 20:49:41 -07:00
ExportProgressWidget.gml Piano: Show a progress window when exporting WAV 2023-02-08 20:07:37 -05:00
ExportProgressWindow.cpp Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
ExportProgressWindow.h Piano: Show a progress window when exporting WAV 2023-02-08 20:07:37 -05:00
KeysWidget.cpp Piano: Clean up code style with help from clang-tidy 2023-02-25 20:49:41 -07:00
KeysWidget.h Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
main.cpp Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
MainWidget.cpp Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
MainWidget.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
Music.h AudioServer+Userland: Decouple client sample rates from device rate 2023-07-01 23:27:24 +01:00
PlayerWidget.cpp Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
PlayerWidget.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
RollWidget.cpp Everywhere: Only use local includes where appropriate 2023-06-06 23:19:50 +02:00
RollWidget.h Piano: Fix insertion and deletion of notes 2023-02-15 12:58:25 +01:00
SamplerWidget.cpp LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
SamplerWidget.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00
TrackControlsWidget.cpp Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
TrackControlsWidget.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
TrackManager.cpp Piano: Clean up code style with help from clang-tidy 2023-02-25 20:49:41 -07:00
TrackManager.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
WaveWidget.cpp Piano+LibDSP: Move Track to LibDSP 2022-07-22 19:35:41 +01:00
WaveWidget.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00