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

Unified Diff: components/audio_modem/audio_recorder_impl.cc

Issue 1892433002: Moving device description utils from AudioManager[Base] into AudioDeviceDescription; to be shared b… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase 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 side-by-side diff with in-line comments
Download patch
Index: components/audio_modem/audio_recorder_impl.cc
diff --git a/components/audio_modem/audio_recorder_impl.cc b/components/audio_modem/audio_recorder_impl.cc
index e35c5403e3d53ce77310a2ba73370f44d94190c8..c87cb6e8311a9bb9b2b6a072578ac112f59e58c1 100644
--- a/components/audio_modem/audio_recorder_impl.cc
+++ b/components/audio_modem/audio_recorder_impl.cc
@@ -15,8 +15,8 @@
#include "base/synchronization/waitable_event.h"
#include "components/audio_modem/public/audio_modem_types.h"
#include "content/public/browser/browser_thread.h"
+#include "media/audio/audio_device_description.h"
#include "media/audio/audio_manager.h"
-#include "media/audio/audio_manager_base.h"
#include "media/base/audio_bus.h"
namespace audio_modem {
@@ -103,7 +103,7 @@ void AudioRecorderImpl::InitializeOnAudioThread() {
params = *params_for_testing_;
} else {
params = media::AudioManager::Get()->GetInputStreamParameters(
- media::AudioManagerBase::kDefaultDeviceId);
+ media::AudioDeviceDescription::kDefaultDeviceId);
params.set_effects(media::AudioParameters::NO_EFFECTS);
}
@@ -114,7 +114,7 @@ void AudioRecorderImpl::InitializeOnAudioThread() {
stream_ = input_stream_for_testing_
? input_stream_for_testing_.get()
: media::AudioManager::Get()->MakeAudioInputStream(
- params, media::AudioManagerBase::kDefaultDeviceId);
+ params, media::AudioDeviceDescription::kDefaultDeviceId);
if (!stream_ || !stream_->Open()) {
LOG(ERROR) << "Failed to open an input stream.";
« no previous file with comments | « chrome/browser/media/desktop_capture_access_handler.cc ('k') | components/audio_modem/audio_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698