diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-07-13 19:42:03 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-13 22:57:24 +0200 |
commit | ffa8cb668faffd4c417cc7ff60215d732a088122 (patch) | |
tree | b2b562056ba6bec73b7999335c2e9d9484cb4b2f /Applications/Piano | |
parent | 983245113afe1961376f5381ea4a77e4364b9d2d (diff) | |
download | serenity-ffa8cb668faffd4c417cc7ff60215d732a088122.zip |
AudioServer: Assorted infrastructure work
* Add a LibAudio, and move WAV file parsing there (via AWavFile and AWavLoader)
* Add CLocalSocket, and CSocket::connect() variant for local address types.
We make some small use of this in WindowServer (as that's where we
modelled it from), but don't get too invasive as this PR is already
quite large, and the WS I/O is a bit carefully done
* Add an AClientConnection which will eventually be used to talk to
AudioServer (and make use of it in Piano, though right now it really
doesn't do anything except connect, using our new CLocalSocket...)
Diffstat (limited to 'Applications/Piano')
-rw-r--r-- | Applications/Piano/Makefile | 2 | ||||
-rw-r--r-- | Applications/Piano/main.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Applications/Piano/Makefile b/Applications/Piano/Makefile index ed2c50af3f..1e362554df 100644 --- a/Applications/Piano/Makefile +++ b/Applications/Piano/Makefile @@ -11,7 +11,7 @@ DEFINES += -DUSERLAND all: $(APP) $(APP): $(OBJS) - $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc + $(LD) -o $(APP) $(LDFLAGS) $(OBJS) -lgui -lcore -lc -laudio .cpp.o: @echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< diff --git a/Applications/Piano/main.cpp b/Applications/Piano/main.cpp index b6e927f565..d453f3b5ad 100644 --- a/Applications/Piano/main.cpp +++ b/Applications/Piano/main.cpp @@ -2,6 +2,7 @@ #include "PianoWidget.h" #include <LibCore/CFile.h> #include <LibCore/CNotifier.h> +#include <LibAudio/AClientConnection.h> #include <LibGUI/GApplication.h> #include <LibGUI/GEventLoop.h> #include <LibGUI/GWindow.h> @@ -10,6 +11,7 @@ static int s_pipefds[2]; int main(int argc, char** argv) { + AClientConnection audio_connection; GApplication app(argc, argv); pipe(s_pipefds); |