diff options
author | kleines Filmröllchen <malu.bertsch@gmail.com> | 2021-08-27 23:52:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 23:38:57 +0200 |
commit | 5300c9e6b4203b45ef86af89a917689740336e42 (patch) | |
tree | 6c21ba20ebb432083451854ad8104ee5f6e17b15 /Userland/Services/AudioServer/Mixer.cpp | |
parent | ab4a2b8b4121fbe640bd13a6468618f463544ec2 (diff) | |
download | serenity-5300c9e6b4203b45ef86af89a917689740336e42.zip |
AudioServer: Rename BufferQueue to ClientAudioStream
Although the old name is more technically correct, it doesn't reflect
what the class is actually doing in the context of the audio server
logic.
Diffstat (limited to 'Userland/Services/AudioServer/Mixer.cpp')
-rw-r--r-- | Userland/Services/AudioServer/Mixer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Services/AudioServer/Mixer.cpp b/Userland/Services/AudioServer/Mixer.cpp index 386b79857a..e694cc2bb0 100644 --- a/Userland/Services/AudioServer/Mixer.cpp +++ b/Userland/Services/AudioServer/Mixer.cpp @@ -49,9 +49,9 @@ Mixer::~Mixer() { } -NonnullRefPtr<BufferQueue> Mixer::create_queue(ClientConnection& client) +NonnullRefPtr<ClientAudioStream> Mixer::create_queue(ClientConnection& client) { - auto queue = adopt_ref(*new BufferQueue(client)); + auto queue = adopt_ref(*new ClientAudioStream(client)); pthread_mutex_lock(&m_pending_mutex); m_pending_mixing.append(*queue); m_added_queue = true; @@ -191,12 +191,12 @@ void Mixer::request_setting_sync() } } -BufferQueue::BufferQueue(ClientConnection& client) +ClientAudioStream::ClientAudioStream(ClientConnection& client) : m_client(client) { } -void BufferQueue::enqueue(NonnullRefPtr<Audio::Buffer>&& buffer) +void ClientAudioStream::enqueue(NonnullRefPtr<Audio::Buffer>&& buffer) { m_remaining_samples += buffer->sample_count(); m_queue.enqueue(move(buffer)); |