forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibAudio: Run clang-format on all of it to make editing easier.
- Loading branch information
1 parent
9ed7f45
commit c7a4c8f
Showing
4 changed files
with
54 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
#pragma once | ||
|
||
#include <LibCore/CLocalSocket.h> | ||
#include <LibCore/CNotifier.h> | ||
#include <LibCore/CoreIPCClient.h> | ||
#include <LibAudio/ASAPI.h> | ||
#include <LibCore/CoreIPCClient.h> | ||
|
||
class ABuffer; | ||
|
||
class AClientConnection : public IPC::Client::Connection<ASAPI_ServerMessage, ASAPI_ClientMessage> { | ||
C_OBJECT(AClientConnection) | ||
public: | ||
AClientConnection(); | ||
|
||
void handshake() override; | ||
void play(const ABuffer& buffer); | ||
virtual void handshake() override; | ||
void play(const ABuffer&); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
#pragma once | ||
|
||
#include <AK/AKString.h> | ||
#include <AK/RefPtr.h> | ||
#include <AK/StringView.h> | ||
#include <AK/AKString.h> | ||
|
||
class ABuffer; | ||
|
||
namespace AK { | ||
class ByteBuffer; | ||
} | ||
|
||
// Parses a WAV file and produces an ABuffer instance from it | ||
class AWavLoader { | ||
public: | ||
RefPtr<ABuffer> load_wav(const StringView& path); | ||
const char* error_string() { return m_error_string.characters(); } | ||
|
||
private: | ||
RefPtr<ABuffer> parse_wav(ByteBuffer& buffer); | ||
RefPtr<ABuffer> parse_wav(ByteBuffer&); | ||
String m_error_string; | ||
}; |