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

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

Issue 2752323002: Support Opus Ambisonics playback (Closed)
Patch Set: actually add config_ change Created 3 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef MEDIA_BASE_OUTPUT_DEVICE_INFO_H_ 5 #ifndef MEDIA_BASE_OUTPUT_DEVICE_INFO_H_
6 #define MEDIA_BASE_OUTPUT_DEVICE_INFO_H_ 6 #define MEDIA_BASE_OUTPUT_DEVICE_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 30 matching lines...) Expand all
41 OutputDeviceInfo(const std::string& device_id, 41 OutputDeviceInfo(const std::string& device_id,
42 OutputDeviceStatus device_status, 42 OutputDeviceStatus device_status,
43 const AudioParameters& output_params); 43 const AudioParameters& output_params);
44 44
45 OutputDeviceInfo(const OutputDeviceInfo& other); 45 OutputDeviceInfo(const OutputDeviceInfo& other);
46 46
47 OutputDeviceInfo& operator=(const OutputDeviceInfo&); 47 OutputDeviceInfo& operator=(const OutputDeviceInfo&);
48 48
49 ~OutputDeviceInfo(); 49 ~OutputDeviceInfo();
50 50
51 void SetIsWebAudioSource(bool value);
DaleCurtis 2017/04/06 19:44:42 Sorry skimmed review due to time yesterday. I see
flim-chromium 2017/04/07 22:01:43 That makes sense, done.
52
51 // Returns the device ID. 53 // Returns the device ID.
52 const std::string& device_id() const { return device_id_; } 54 const std::string& device_id() const { return device_id_; }
53 55
54 // Returns the status of output device. 56 // Returns the status of output device.
55 OutputDeviceStatus device_status() const { return device_status_; } 57 OutputDeviceStatus device_status() const { return device_status_; }
56 58
57 // Returns the device's audio output parameters. 59 // Returns the device's audio output parameters.
58 // The return value is undefined if the device status (as returned by 60 // The return value is undefined if the device status (as returned by
59 // device_status()) is different from OUTPUT_DEVICE_STATUS_OK. 61 // device_status()) is different from OUTPUT_DEVICE_STATUS_OK.
60 const AudioParameters& output_params() const { return output_params_; }; 62 const AudioParameters& output_params() const { return output_params_; };
61 63
64 // Returns whether a webaudio source is attached to the HTML media element.
65 bool is_webaudio_source() const { return is_webaudio_source_; };
66
62 // Returns a human-readable string describing |*this|. For debugging & test 67 // Returns a human-readable string describing |*this|. For debugging & test
63 // output only. 68 // output only.
64 std::string AsHumanReadableString() const; 69 std::string AsHumanReadableString() const;
65 70
66 private: 71 private:
67 std::string device_id_; 72 std::string device_id_;
68 OutputDeviceStatus device_status_; 73 OutputDeviceStatus device_status_;
69 AudioParameters output_params_; 74 AudioParameters output_params_;
75 bool is_webaudio_source_;
70 }; 76 };
71 77
72 } // namespace media 78 } // namespace media
73 79
74 #endif // MEDIA_BASE_OUTPUT_DEVICE_INFO_H_ 80 #endif // MEDIA_BASE_OUTPUT_DEVICE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698