OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ppb_audio_shared.h" | 5 #include "ppapi/shared_impl/ppb_audio_shared.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
11 #include "media/audio/audio_parameters.h" | 11 #include "media/base/audio_parameters.h" |
12 #include "ppapi/nacl_irt/public/irt_ppapi.h" | 12 #include "ppapi/nacl_irt/public/irt_ppapi.h" |
13 #include "ppapi/shared_impl/ppapi_globals.h" | 13 #include "ppapi/shared_impl/ppapi_globals.h" |
14 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 14 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
15 #include "ppapi/shared_impl/proxy_lock.h" | 15 #include "ppapi/shared_impl/proxy_lock.h" |
16 | 16 |
17 namespace ppapi { | 17 namespace ppapi { |
18 | 18 |
19 namespace { | 19 namespace { |
20 bool g_nacl_mode = false; | 20 bool g_nacl_mode = false; |
21 // Because this is static, the function pointers will be NULL initially. | 21 // Because this is static, the function pointers will be NULL initially. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Let the other end know which buffer we just filled. The buffer index is | 242 // Let the other end know which buffer we just filled. The buffer index is |
243 // used to ensure the other end is getting the buffer it expects. For more | 243 // used to ensure the other end is getting the buffer it expects. For more |
244 // details on how this works see AudioSyncReader::WaitUntilDataIsReady(). | 244 // details on how this works see AudioSyncReader::WaitUntilDataIsReady(). |
245 size_t bytes_sent = socket_->Send(&buffer_index_, sizeof(buffer_index_)); | 245 size_t bytes_sent = socket_->Send(&buffer_index_, sizeof(buffer_index_)); |
246 if (bytes_sent != sizeof(buffer_index_)) | 246 if (bytes_sent != sizeof(buffer_index_)) |
247 break; | 247 break; |
248 } | 248 } |
249 } | 249 } |
250 | 250 |
251 } // namespace ppapi | 251 } // namespace ppapi |
OLD | NEW |