Index: webrtc/modules/audio_device/audio_device_generic.h |
diff --git a/webrtc/modules/audio_device/audio_device_generic.h b/webrtc/modules/audio_device/audio_device_generic.h |
index c76ea52428ad932a9a16b80abe0b0e1fc1b95dbb..a80d893a99c1b1e0dc7c129a8cdd6f7962d20611 100644 |
--- a/webrtc/modules/audio_device/audio_device_generic.h |
+++ b/webrtc/modules/audio_device/audio_device_generic.h |
@@ -18,12 +18,21 @@ namespace webrtc { |
class AudioDeviceGeneric { |
public: |
+ // For use with UMA logging. Must be kept in sync with histograms.xml in |
+ // Chrome. |
henrika_webrtc
2016/06/30 15:19:18
Can you add a link to the public file here?
Max Morin WebRTC
2016/06/30 16:00:22
Done.
|
+ enum class InitStatus { |
+ OK = 0, |
henrika_webrtc
2016/06/30 15:19:18
I would use NO_ERROR instead
Max Morin WebRTC
2016/06/30 16:00:22
Done.
|
+ PLAYOUT_ERROR = 1, |
+ RECORDING_ERROR = 2, |
+ OTHER_ERROR = 3, |
+ NUM_STATUSES = 4 |
+ }; |
// Retrieve the currently utilized audio layer |
virtual int32_t ActiveAudioLayer( |
AudioDeviceModule::AudioLayer& audioLayer) const = 0; |
// Main initializaton and termination |
- virtual int32_t Init() = 0; |
+ virtual InitStatus Init() = 0; |
virtual int32_t Terminate() = 0; |
virtual bool Initialized() const = 0; |