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

Side by Side Diff: chrome/browser/renderer_host/audio_renderer_host.cc

Issue 3119035: FBTF: Move individual XXXMsg_Params structs to a new file. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix comment Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/audio_renderer_host.h" 5 #include "chrome/browser/renderer_host/audio_renderer_host.h"
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/lock.h" 8 #include "base/lock.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "base/sys_info.h" 11 #include "base/sys_info.h"
12 #include "chrome/browser/renderer_host/audio_sync_reader.h" 12 #include "chrome/browser/renderer_host/audio_sync_reader.h"
13 #include "chrome/common/render_messages.h" 13 #include "chrome/common/render_messages.h"
14 #include "chrome/common/render_messages_params.h"
14 #include "ipc/ipc_logging.h" 15 #include "ipc/ipc_logging.h"
15 16
16 // The minimum number of samples in a hardware packet. 17 // The minimum number of samples in a hardware packet.
17 // This value is selected so that we can handle down to 5khz sample rate. 18 // This value is selected so that we can handle down to 5khz sample rate.
18 static const int kMinSamplesPerHardwarePacket = 1024; 19 static const int kMinSamplesPerHardwarePacket = 1024;
19 20
20 // The maximum number of samples in a hardware packet. 21 // The maximum number of samples in a hardware packet.
21 // This value is selected so that we can handle up to 192khz sample rate. 22 // This value is selected so that we can handle up to 192khz sample rate.
22 static const int kMaxSamplesPerHardwarePacket = 64 * 1024; 23 static const int kMaxSamplesPerHardwarePacket = 64 * 1024;
23 24
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 573
573 // Iterate the map of entries. 574 // Iterate the map of entries.
574 // TODO(hclam): Implement a faster look up method. 575 // TODO(hclam): Implement a faster look up method.
575 for (AudioEntryMap::iterator i = audio_entries_.begin(); 576 for (AudioEntryMap::iterator i = audio_entries_.begin();
576 i != audio_entries_.end(); ++i) { 577 i != audio_entries_.end(); ++i) {
577 if (controller == i->second->controller.get()) 578 if (controller == i->second->controller.get())
578 return i->second; 579 return i->second;
579 } 580 }
580 return NULL; 581 return NULL;
581 } 582 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_view_manager.cc ('k') | chrome/browser/renderer_host/audio_renderer_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698