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

Side by Side Diff: media/base/output_device_info.cc

Issue 1809093003: Moving SwitchOutputDevice out of OutputDevice interface, eliminating OutputDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing miu@ and grunell@ review comments, changing AudioDeviceFactory to produce AudioCapturerS… Created 4 years, 8 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/base/output_device_info.h"
6
7 namespace media {
8
9 // Output device information returned by GetOutputDeviceInfo() methods of
10 // various interfaces.
11 OutputDeviceInfo::OutputDeviceInfo()
12 : OutputDeviceInfo(OUTPUT_DEVICE_STATUS_ERROR_INTERNAL) {}
13
14 OutputDeviceInfo::OutputDeviceInfo(OutputDeviceStatus device_status)
15 : OutputDeviceInfo(
16 std::string(),
17 device_status,
18 AudioParameters(AudioParameters::UnavailableDeviceParams())) {}
miu 2016/03/29 19:46:27 I think you meant just this for the 3rd argument:
o1ka 2016/03/30 14:02:42 Oops :) Sure, thanks!
19
20 OutputDeviceInfo::OutputDeviceInfo(const std::string& device_id,
21 OutputDeviceStatus device_status,
22 const AudioParameters& output_params)
23 : device_id_(device_id),
24 device_status_(device_status),
25 output_params_(output_params) {}
26
27 OutputDeviceInfo::OutputDeviceInfo(const OutputDeviceInfo&) = default;
28
29 OutputDeviceInfo& OutputDeviceInfo::operator=(const OutputDeviceInfo&) =
30 default;
31
32 OutputDeviceInfo::~OutputDeviceInfo() {}
33
34 std::string OutputDeviceInfo::AsHumanReadableString() const {
35 std::ostringstream s;
36 s << "device_id: " << device_id() << " device_status: " << device_status()
37 << " output_params: [ " << output_params().AsHumanReadableString() << " ]";
38 return s.str();
39 }
40
41 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698