Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: ppapi/shared_impl/ppb_audio_shared.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/proxy/audio_input_resource.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/audio_input_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698