summaryrefslogtreecommitdiff
path: root/Applications/Piano/main.cpp
AgeCommit message (Collapse)Author
2019-09-14LibGUI: Simplify GCommonActions a bitAndreas Kling
Use the same callback signature as GAction so we can just forward it to GAction instead of chaining callbacks.
2019-09-05Piano: Added GCommonActionsrhin123
2019-08-26Piano: Port threading to LibThreadSergey Bugaev
2019-07-28WindowServer+LibGUI: Pass window icons as shared buffers rather than paths.Andreas Kling
Now that we support more than 2 clients per shared buffer, we can use them for window icons. I didn't do that previously since it would have made the Taskbar process unable to access the icons. This opens up some nice possibilities for programmatically generated icons.
2019-07-27Piano: Add an (empty) menubar so the app looks a little more complete.Andreas Kling
2019-07-23LibGUI: Get rid of GWindow::should_exit_event_loop_on_close().Andreas Kling
This behavior and API was extremely counter-intuitive since our default behavior was for applications to never exit after you close all of their windows. Now that we exit the event loop by default when the very last GWindow is deleted, we don't have to worry about this.
2019-07-23Piano: Exit the event loop on main window close.Andreas Kling
2019-07-17Port LibGUI to use CIPCClientSideConnectionRobin Burchell
As a consequence, move to use an explicit handshake() method rather than calling virtuals from the constructor. This seemed to not bother AClientConnection, but LibGUI crashes (rightfully) because of it.
2019-07-16Piano: Create the connection after the event loopRobin Burchell
Otherwise it will crash when registering the CNotifier.
2019-07-14Piano: Use CEventLoop::wake() to trigger repaint from sound thread.Andreas Kling
In order to repaint the GUI after the sound thread has produced some sweet new waves, we post a CCustomEvent to the main thread's event loop and then wake up that event loop via CEventLoop::wake().
2019-07-13Piano: Add 16x16 window icon.Andreas Kling
2019-07-13AudioServer: Assorted infrastructure workRobin Burchell
* 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...)
2019-07-13Piano: Use a secondary thread to write the audio stream.Andreas Kling
This frees up the main thread to draw the GUI. The secondary thread uses a pipe to trick the main thread's event loop to break out of select() and update() the PianoWidget. :^)
2019-07-13Piano: Start working on a desktop piano.Andreas Kling
The idea here is to implement a simple synhesizer that allows you to play music with your keyboard. :^) It's a huge hack currently but we can improve upon this.