1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 08:27:35 +00:00
serenity/Userland/Libraries/LibAudio
kleines Filmröllchen 03fac609ee AudioServer+Userland: Separate audio IPC into normal client and manager
This is a sensible separation of concerns that mirrors the WindowServer
IPC split. On the one hand, there is the "normal" audio interface, used
for clients that play audio, which is the primary service of
AudioServer. On the other hand, there is the management interface,
which, like the WindowManager endpoint, provides higher-level control
over clients and the server itself.

The reasoning for this split are manifold, as mentioned we are mirroring
the WindowServer split. Another indication to the sensibility of the
split is that no single audio client used the APIs of both interfaces.
Also, useless audio queues are no longer created for managing clients
(since those don't even exist, just like there's no window backing
bitmap for window managing clients), eliminating any bugs that may occur
there as they have in the past.

Implementation-wise, we just move all the APIs and implementations from
the old AudioServer into the AudioManagerServer (and respective clients,
of course). There is one point of duplication, namely the hardware
sample rate. This will be fixed in combination with per-client sample
rate, eliminating client-side resampling and the related update bugs.
For now, we keep one legacy API to simplify the transition.

The new AudioManagerServer also gains a hardware sample rate change
callback to have exact symmetry on the main server parameters (getter,
setter, and callback).
2023-06-25 00:16:44 +02:00
..
CMakeLists.txt AudioServer+Userland: Separate audio IPC into normal client and manager 2023-06-25 00:16:44 +02:00
ConnectionToManagerServer.cpp AudioServer+Userland: Separate audio IPC into normal client and manager 2023-06-25 00:16:44 +02:00
ConnectionToManagerServer.h AudioServer+Userland: Separate audio IPC into normal client and manager 2023-06-25 00:16:44 +02:00
ConnectionToServer.cpp AudioServer+Userland: Separate audio IPC into normal client and manager 2023-06-25 00:16:44 +02:00
ConnectionToServer.h AudioServer+Userland: Separate audio IPC into normal client and manager 2023-06-25 00:16:44 +02:00
FlacLoader.cpp LibAudio: Compute and verify FLAC frame header checksums 2023-05-18 22:23:15 +02:00
FlacLoader.h LibAudio: Use specified bit depth directly 2023-03-19 14:15:35 +00:00
FlacTypes.h LibAudio: Compute and verify FLAC frame header checksums 2023-05-18 22:23:15 +02:00
Forward.h LibAudio: Add a forwarding header 2023-06-13 06:14:01 +02:00
GenericTypes.cpp LibAudio: Improve FLAC seeking 2023-03-19 00:28:02 +00:00
GenericTypes.h LibAudio: Improve FLAC seeking 2023-03-19 00:28:02 +00:00
Loader.cpp LibAudio: Move audio stream buffering into the loader 2023-03-13 13:25:42 +01:00
Loader.h LibAudio: Add accessor to "real" PCM sample format of loader 2023-06-22 21:45:54 +02:00
LoaderError.h LibAudio: Add a formatter for LoaderError 2023-03-13 12:35:17 -04:00
Metadata.cpp LibAudio: Add a generic audio metadata container 2023-03-13 12:35:17 -04:00
Metadata.h LibAudio: Add a generic audio metadata container 2023-03-13 12:35:17 -04:00
MP3HuffmanTables.h Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
MP3Loader.cpp AK: Add the Input word to input-only buffered streams 2023-05-09 11:18:46 +02:00
MP3Loader.h LibAudio: Use new generic seek table for MP3 2023-03-19 00:28:02 +00:00
MP3Tables.h LibAudio+LibDSP: Switch samples to 32-bit float instead of 64-bit float 2022-05-07 20:20:16 +02:00
MP3Types.h LibAudio: Use symbolic constants for MP3 frame and granule size 2023-03-13 13:25:42 +01:00
QOALoader.cpp AK: Add the Input word to input-only buffered streams 2023-05-09 11:18:46 +02:00
QOALoader.h LibAudio: Move audio stream buffering into the loader 2023-03-13 13:25:42 +01:00
QOATypes.cpp LibAudio: Implement the Quite Okay Audio format 2023-03-10 04:07:14 -07:00
QOATypes.h LibAudio: Implement the Quite Okay Audio format 2023-03-10 04:07:14 -07:00
Queue.h LibAudio+Userland: Remove Audio::LegacyBuffer 2022-05-03 23:09:20 +02:00
Resampler.h LibAudio: Tolerate a file sample rate lower than the AudioServer's 2022-12-31 00:04:34 +01:00
RIFFTypes.cpp LibAudio: Load WAV metadata 2023-05-31 16:23:07 +02:00
RIFFTypes.h LibAudio: Load WAV metadata 2023-05-31 16:23:07 +02:00
Sample.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
SampleFormats.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SampleFormats.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
UserSampleQueue.cpp LibAudio: Prevent int overflow in the user buffer queue 2022-12-31 00:08:05 +01:00
UserSampleQueue.h Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
VorbisComment.cpp LibAudio: Update stream APIs used when reading audio metadata 2023-03-13 12:46:42 -04:00
VorbisComment.h LibAudio: Detect and read FLAC metadata 2023-03-13 12:35:17 -04:00
WavLoader.cpp LibAudio: Remove redundant checks in WavLoader 2023-06-20 09:12:17 +02:00
WavLoader.h LibAudio: Load WAV metadata 2023-05-31 16:23:07 +02:00
WavWriter.cpp LibAudio: Handle all integer PCM sample formats "correctly" in WavWriter 2023-06-22 21:45:54 +02:00
WavWriter.h LibAudio: Handle all integer PCM sample formats "correctly" in WavWriter 2023-06-22 21:45:54 +02:00