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

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

Issue 2538793002: Log audio system used to WebRTC log. (Closed)
Patch Set: Code review. Created 4 years 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 | « media/audio/mac/audio_manager_mac.h ('k') | media/audio/mock_audio_manager.h » ('j') | 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 "media/audio/mac/audio_manager_mac.h" 5 #include "media/audio/mac/audio_manager_mac.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 associated_devices.begin(); 596 associated_devices.begin();
597 iter != associated_devices.end(); ++iter) { 597 iter != associated_devices.end(); ++iter) {
598 if (default_device == *iter) 598 if (default_device == *iter)
599 return *iter; 599 return *iter;
600 } 600 }
601 601
602 // Failed to figure out which is the matching device, return an empty string. 602 // Failed to figure out which is the matching device, return an empty string.
603 return std::string(); 603 return std::string();
604 } 604 }
605 605
606 const char* AudioManagerMac::GetName() {
607 return "Mac";
608 }
609
606 AudioOutputStream* AudioManagerMac::MakeLinearOutputStream( 610 AudioOutputStream* AudioManagerMac::MakeLinearOutputStream(
607 const AudioParameters& params, 611 const AudioParameters& params,
608 const LogCallback& log_callback) { 612 const LogCallback& log_callback) {
609 DCHECK(GetTaskRunner()->BelongsToCurrentThread()); 613 DCHECK(GetTaskRunner()->BelongsToCurrentThread());
610 return MakeLowLatencyOutputStream(params, std::string(), log_callback); 614 return MakeLowLatencyOutputStream(params, std::string(), log_callback);
611 } 615 }
612 616
613 AudioOutputStream* AudioManagerMac::MakeLowLatencyOutputStream( 617 AudioOutputStream* AudioManagerMac::MakeLowLatencyOutputStream(
614 const AudioParameters& params, 618 const AudioParameters& params,
615 const std::string& device_id, 619 const std::string& device_id,
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 ScopedAudioManagerPtr CreateAudioManager( 1084 ScopedAudioManagerPtr CreateAudioManager(
1081 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 1085 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
1082 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, 1086 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
1083 AudioLogFactory* audio_log_factory) { 1087 AudioLogFactory* audio_log_factory) {
1084 return ScopedAudioManagerPtr( 1088 return ScopedAudioManagerPtr(
1085 new AudioManagerMac(std::move(task_runner), std::move(worker_task_runner), 1089 new AudioManagerMac(std::move(task_runner), std::move(worker_task_runner),
1086 audio_log_factory)); 1090 audio_log_factory));
1087 } 1091 }
1088 1092
1089 } // namespace media 1093 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/mac/audio_manager_mac.h ('k') | media/audio/mock_audio_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698