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

Side by Side Diff: media/audio/mac/audio_low_latency_input_mac.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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 | Annotate | Revision Log
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 "media/audio/mac/audio_low_latency_input_mac.h" 5 #include "media/audio/mac/audio_low_latency_input_mac.h"
6 6
7 #include <CoreServices/CoreServices.h> 7 #include <CoreServices/CoreServices.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/mac/mac_logging.h" 11 #include "base/mac/mac_logging.h"
12 #include "media/audio/audio_util.h" 12 #include "media/audio/audio_util.h"
13 #include "media/audio/mac/audio_manager_mac.h" 13 #include "media/audio/mac/audio_manager_mac.h"
14 #include "media/base/data_buffer.h" 14 #include "media/base/data_buffer.h"
15 15
16 namespace media { 16 namespace media {
17 17
18 static const int kMinIntervalBetweenVolumeUpdatesMs = 1000;
19
20 static std::ostream& operator<<(std::ostream& os, 18 static std::ostream& operator<<(std::ostream& os,
21 const AudioStreamBasicDescription& format) { 19 const AudioStreamBasicDescription& format) {
22 os << "sample rate : " << format.mSampleRate << std::endl 20 os << "sample rate : " << format.mSampleRate << std::endl
23 << "format ID : " << format.mFormatID << std::endl 21 << "format ID : " << format.mFormatID << std::endl
24 << "format flags : " << format.mFormatFlags << std::endl 22 << "format flags : " << format.mFormatFlags << std::endl
25 << "bytes per packet : " << format.mBytesPerPacket << std::endl 23 << "bytes per packet : " << format.mBytesPerPacket << std::endl
26 << "frames per packet : " << format.mFramesPerPacket << std::endl 24 << "frames per packet : " << format.mFramesPerPacket << std::endl
27 << "bytes per frame : " << format.mBytesPerFrame << std::endl 25 << "bytes per frame : " << format.mBytesPerFrame << std::endl
28 << "channels per frame: " << format.mChannelsPerFrame << std::endl 26 << "channels per frame: " << format.mChannelsPerFrame << std::endl
29 << "bits per channel : " << format.mBitsPerChannel; 27 << "bits per channel : " << format.mBitsPerChannel;
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 kAudioDevicePropertyScopeInput, 659 kAudioDevicePropertyScopeInput,
662 static_cast<UInt32>(channel) 660 static_cast<UInt32>(channel)
663 }; 661 };
664 OSStatus result = AudioObjectIsPropertySettable(input_device_id_, 662 OSStatus result = AudioObjectIsPropertySettable(input_device_id_,
665 &property_address, 663 &property_address,
666 &is_settable); 664 &is_settable);
667 return (result == noErr) ? is_settable : false; 665 return (result == noErr) ? is_settable : false;
668 } 666 }
669 667
670 } // namespace media 668 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698