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

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

Issue 2028083002: Revert of Use valid log callback for audio modem's audio recorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_auhal_mac.h" 5 #include "media/audio/mac/audio_auhal_mac.h"
6 6
7 #include <CoreServices/CoreServices.h> 7 #include <CoreServices/CoreServices.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 current_hardware_pending_bytes_(0), 56 current_hardware_pending_bytes_(0),
57 current_lost_frames_(0), 57 current_lost_frames_(0),
58 last_sample_time_(0.0), 58 last_sample_time_(0.0),
59 last_number_of_frames_(0), 59 last_number_of_frames_(0),
60 total_lost_frames_(0), 60 total_lost_frames_(0),
61 largest_glitch_frames_(0), 61 largest_glitch_frames_(0),
62 glitches_detected_(0), 62 glitches_detected_(0),
63 log_callback_(log_callback) { 63 log_callback_(log_callback) {
64 // We must have a manager. 64 // We must have a manager.
65 DCHECK(manager_); 65 DCHECK(manager_);
66 CHECK(!log_callback_.Equals(AudioManager::LogCallback())); 66 DCHECK(!log_callback_.Equals(AudioManager::LogCallback()));
67 67
68 DVLOG(1) << "ctor"; 68 DVLOG(1) << "ctor";
69 DVLOG(1) << "device ID: 0x" << std::hex << device; 69 DVLOG(1) << "device ID: 0x" << std::hex << device;
70 DVLOG(1) << "buffer size: " << number_of_frames_; 70 DVLOG(1) << "buffer size: " << number_of_frames_;
71 DVLOG(1) << "output channels: " << output_channels_; 71 DVLOG(1) << "output channels: " << output_channels_;
72 DVLOG(1) << "sample rate: " << params_.sample_rate(); 72 DVLOG(1) << "sample rate: " << params_.sample_rate();
73 } 73 }
74 74
75 AUHALStream::~AUHALStream() { 75 AUHALStream::~AUHALStream() {
76 DCHECK(thread_checker_.CalledOnValidThread()); 76 DCHECK(thread_checker_.CalledOnValidThread());
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 OSStatus result = AudioUnitUninitialize(audio_unit_); 555 OSStatus result = AudioUnitUninitialize(audio_unit_);
556 OSSTATUS_DLOG_IF(ERROR, result != noErr, result) 556 OSSTATUS_DLOG_IF(ERROR, result != noErr, result)
557 << "AudioUnitUninitialize() failed."; 557 << "AudioUnitUninitialize() failed.";
558 result = AudioComponentInstanceDispose(audio_unit_); 558 result = AudioComponentInstanceDispose(audio_unit_);
559 OSSTATUS_DLOG_IF(ERROR, result != noErr, result) 559 OSSTATUS_DLOG_IF(ERROR, result != noErr, result)
560 << "AudioComponentInstanceDispose() failed."; 560 << "AudioComponentInstanceDispose() failed.";
561 audio_unit_ = 0; 561 audio_unit_ = 0;
562 } 562 }
563 563
564 } // namespace media 564 } // namespace media
OLDNEW
« no previous file with comments | « components/audio_modem/audio_recorder_impl.cc ('k') | media/audio/mac/audio_low_latency_input_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698