1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +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
FlacLoader.h
FlacTypes.h
Forward.h LibAudio: Add a forwarding header 2023-06-13 06:14:01 +02:00
GenericTypes.cpp
GenericTypes.h
Loader.cpp
Loader.h LibAudio: Add accessor to "real" PCM sample format of loader 2023-06-22 21:45:54 +02:00
LoaderError.h
Metadata.cpp
Metadata.h
MP3HuffmanTables.h
MP3Loader.cpp
MP3Loader.h
MP3Tables.h
MP3Types.h
QOALoader.cpp
QOALoader.h
QOATypes.cpp
QOATypes.h
Queue.h
Resampler.h
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
SampleFormats.cpp
SampleFormats.h
UserSampleQueue.cpp
UserSampleQueue.h
VorbisComment.cpp
VorbisComment.h
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