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

Unified Diff: media/audio/win/audio_manager_win.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 side-by-side diff with in-line comments
Download patch
Index: media/audio/win/audio_manager_win.cc
diff --git a/media/audio/win/audio_manager_win.cc b/media/audio/win/audio_manager_win.cc
index 89e9eab41d51cb260ae8dfecf65263fed14e7cc0..30ae3a8de8c32b4b3ab02411b46d27f774828bf6 100644
--- a/media/audio/win/audio_manager_win.cc
+++ b/media/audio/win/audio_manager_win.cc
@@ -67,6 +67,10 @@ static const int kNumInputBuffers = 3;
// determined from the system
static const int kFallbackBufferSize = 2048;
+namespace {
+const char kAudioManagerName[] = "Windows";
+}
+
static int GetVersionPartAsInt(DWORDLONG num) {
return static_cast<int>(num & 0xffff);
}
@@ -331,6 +335,10 @@ std::string AudioManagerWin::GetAssociatedOutputDeviceID(
return CoreAudioUtil::GetMatchingOutputDeviceID(input_device_id);
}
+const char* AudioManagerWin::GetName() {
+ return kAudioManagerName;
+}
+
// Factory for the implementations of AudioOutputStream for AUDIO_PCM_LINEAR
// mode.
// - PCMWaveOutAudioOutputStream: Based on the waveOut API.
« chromecast/media/audio/cast_audio_manager.cc ('K') | « media/audio/win/audio_manager_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698