| Index: media/audio/win/audio_manager_win.cc
|
| diff --git a/media/audio/win/audio_manager_win.cc b/media/audio/win/audio_manager_win.cc
|
| index 7b3d6fa91a7dbbdf0e142162d5ba23dc6ff395a6..bc736bc51731836e78a47b9b343d024178f64da0 100644
|
| --- a/media/audio/win/audio_manager_win.cc
|
| +++ b/media/audio/win/audio_manager_win.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -37,32 +37,30 @@
|
| DEFINE_GUID(AM_KSCATEGORY_AUDIO, 0x6994ad04, 0x93ef, 0x11d0,
|
| 0xa3, 0xcc, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96);
|
|
|
| -namespace {
|
| -
|
| // Maximum number of output streams that can be open simultaneously.
|
| -const size_t kMaxOutputStreams = 50;
|
| +static const size_t kMaxOutputStreams = 50;
|
|
|
| // Up to 8 channels can be passed to the driver.
|
| // This should work, given the right drivers, but graceful error handling is
|
| // needed.
|
| -const int kWinMaxChannels = 8;
|
| +static const int kWinMaxChannels = 8;
|
|
|
| -const int kWinMaxInputChannels = 2;
|
| +static const int kWinMaxInputChannels = 2;
|
| // We use 3 buffers for recording audio so that if a recording callback takes
|
| // some time to return we won't lose audio. More buffers while recording are
|
| // ok because they don't introduce any delay in recording, unlike in playback
|
| // where you first need to fill in that number of buffers before starting to
|
| // play.
|
| -const int kNumInputBuffers = 3;
|
| +static const int kNumInputBuffers = 3;
|
|
|
| -int GetVersionPartAsInt(DWORDLONG num) {
|
| +static int GetVersionPartAsInt(DWORDLONG num) {
|
| return static_cast<int>(num & 0xffff);
|
| }
|
|
|
| // Returns a string containing the given device's description and installed
|
| // driver version.
|
| -string16 GetDeviceAndDriverInfo(HDEVINFO device_info,
|
| - SP_DEVINFO_DATA* device_data) {
|
| +static string16 GetDeviceAndDriverInfo(HDEVINFO device_info,
|
| + SP_DEVINFO_DATA* device_data) {
|
| // Save the old install params setting and set a flag for the
|
| // SetupDiBuildDriverInfoList below to return only the installed drivers.
|
| SP_DEVINSTALL_PARAMS old_device_install_params;
|
| @@ -97,8 +95,6 @@ string16 GetDeviceAndDriverInfo(HDEVINFO device_info,
|
| return device_and_driver_info;
|
| }
|
|
|
| -} // namespace
|
| -
|
| AudioManagerWin::AudioManagerWin()
|
| : num_output_streams_(0) {
|
| }
|
|
|