OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ppapi/shared_impl/audio_input_impl.h" | 5 #include "ppapi/shared_impl/audio_input_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace ppapi { | 9 namespace ppapi { |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void* buffer = shared_memory_->memory(); | 85 void* buffer = shared_memory_->memory(); |
86 | 86 |
87 while (sizeof(pending_data) == socket_->Receive(&pending_data, | 87 while (sizeof(pending_data) == socket_->Receive(&pending_data, |
88 sizeof(pending_data)) && | 88 sizeof(pending_data)) && |
89 pending_data >= 0) { | 89 pending_data >= 0) { |
90 callback_(buffer, shared_memory_size_, user_data_); | 90 callback_(buffer, shared_memory_size_, user_data_); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 } // namespace ppapi | 94 } // namespace ppapi |
OLD | NEW |