Skip to content

Commit

Permalink
AudioServer: Remove some outdated comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Jul 27, 2019
1 parent 5e01dde commit 60a9a23
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Servers/AudioServer/ASClientConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,13 @@ bool ASClientConnection::handle_message(const ASAPI_ClientMessage& message, cons
set_client_pid(message.greeting.client_pid);
break;
case ASAPI_ClientMessage::Type::PlayBuffer: {
// ### ensure that the size is that of a Vector<ASample>

auto shared_buffer = SharedBuffer::create_from_shared_buffer_id(message.play_buffer.buffer_id);
if (!shared_buffer) {
did_misbehave();
return false;
}

// we no longer need the buffer, so acknowledge that it's playing
// TODO: rate limit playback here somehow
ASAPI_ServerMessage reply;
reply.type = ASAPI_ServerMessage::Type::PlayingBuffer;
reply.playing_buffer.buffer_id = message.play_buffer.buffer_id;
Expand Down

0 comments on commit 60a9a23

Please sign in to comment.