mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
Userland: Rename IPC ClientConnection => ConnectionFromClient
This was done with CLion's automatic rename feature and with: find . -name ClientConnection.h | rename 's/ClientConnection\.h/ConnectionFromClient.h/' find . -name ClientConnection.cpp | rename 's/ClientConnection\.cpp/ConnectionFromClient.cpp/'
This commit is contained in:
parent
efac862570
commit
3a71748e5d
137 changed files with 896 additions and 896 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include "PlaybackManager.h"
|
||||
|
||||
PlaybackManager::PlaybackManager(NonnullRefPtr<Audio::ClientConnection> connection)
|
||||
PlaybackManager::PlaybackManager(NonnullRefPtr<Audio::ConnectionFromClient> connection)
|
||||
: m_connection(connection)
|
||||
{
|
||||
m_timer = Core::Timer::construct(PlaybackManager::update_rate_ms, [&]() {
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
#include <AK/Queue.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibAudio/Buffer.h>
|
||||
#include <LibAudio/ClientConnection.h>
|
||||
#include <LibAudio/ConnectionFromClient.h>
|
||||
#include <LibAudio/Loader.h>
|
||||
#include <LibCore/Timer.h>
|
||||
|
||||
class PlaybackManager final {
|
||||
public:
|
||||
PlaybackManager(NonnullRefPtr<Audio::ClientConnection>);
|
||||
PlaybackManager(NonnullRefPtr<Audio::ConnectionFromClient>);
|
||||
~PlaybackManager() = default;
|
||||
|
||||
void play();
|
||||
|
@ -34,7 +34,7 @@ public:
|
|||
float total_length() const { return m_total_length; }
|
||||
RefPtr<Audio::Buffer> current_buffer() const { return m_current_buffer; }
|
||||
|
||||
NonnullRefPtr<Audio::ClientConnection> connection() const { return m_connection; }
|
||||
NonnullRefPtr<Audio::ConnectionFromClient> connection() const { return m_connection; }
|
||||
|
||||
Function<void()> on_update;
|
||||
Function<void(Audio::Buffer&)> on_load_sample_buffer;
|
||||
|
@ -55,7 +55,7 @@ private:
|
|||
size_t m_device_samples_per_buffer { 0 };
|
||||
size_t m_source_buffer_size_bytes { 0 };
|
||||
RefPtr<Audio::Loader> m_loader { nullptr };
|
||||
NonnullRefPtr<Audio::ClientConnection> m_connection;
|
||||
NonnullRefPtr<Audio::ConnectionFromClient> m_connection;
|
||||
RefPtr<Audio::Buffer> m_current_buffer;
|
||||
Queue<i32, always_enqueued_buffer_count + 1> m_enqueued_buffers;
|
||||
Optional<Audio::ResampleHelper<double>> m_resampler;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include "Player.h"
|
||||
|
||||
Player::Player(Audio::ClientConnection& audio_client_connection)
|
||||
Player::Player(Audio::ConnectionFromClient& audio_client_connection)
|
||||
: m_audio_client_connection(audio_client_connection)
|
||||
, m_playback_manager(audio_client_connection)
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
Shuffling,
|
||||
};
|
||||
|
||||
explicit Player(Audio::ClientConnection& audio_client_connection);
|
||||
explicit Player(Audio::ConnectionFromClient& audio_client_connection);
|
||||
virtual ~Player() = default;
|
||||
|
||||
void play_file_path(String const& path);
|
||||
|
@ -90,7 +90,7 @@ private:
|
|||
LoopMode m_loop_mode;
|
||||
ShuffleMode m_shuffle_mode;
|
||||
|
||||
Audio::ClientConnection& m_audio_client_connection;
|
||||
Audio::ConnectionFromClient& m_audio_client_connection;
|
||||
PlaybackManager m_playback_manager;
|
||||
|
||||
String m_loaded_filename;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <LibGUI/Window.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
|
||||
SoundPlayerWidgetAdvancedView::SoundPlayerWidgetAdvancedView(GUI::Window& window, Audio::ClientConnection& connection)
|
||||
SoundPlayerWidgetAdvancedView::SoundPlayerWidgetAdvancedView(GUI::Window& window, Audio::ConnectionFromClient& connection)
|
||||
: Player(connection)
|
||||
, m_window(window)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "Player.h"
|
||||
#include "VisualizationWidget.h"
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <LibAudio/ClientConnection.h>
|
||||
#include <LibAudio/ConnectionFromClient.h>
|
||||
#include <LibGUI/Splitter.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
|
||||
|
@ -50,7 +50,7 @@ protected:
|
|||
void keydown_event(GUI::KeyEvent&) override;
|
||||
|
||||
private:
|
||||
SoundPlayerWidgetAdvancedView(GUI::Window&, Audio::ClientConnection&);
|
||||
SoundPlayerWidgetAdvancedView(GUI::Window&, Audio::ConnectionFromClient&);
|
||||
|
||||
void sync_previous_next_buttons();
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "Player.h"
|
||||
#include "SampleWidget.h"
|
||||
#include "SoundPlayerWidgetAdvancedView.h"
|
||||
#include <LibAudio/ClientConnection.h>
|
||||
#include <LibAudio/ConnectionFromClient.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
|
@ -28,7 +28,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::pledge("stdio recvfd sendfd rpath thread unix"));
|
||||
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
auto audio_client = TRY(Audio::ClientConnection::try_create());
|
||||
auto audio_client = TRY(Audio::ConnectionFromClient::try_create());
|
||||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd rpath thread"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue