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

Unified Diff: media/audio/null_audio_sink.cc

Issue 1809093003: Moving SwitchOutputDevice out of OutputDevice interface, eliminating OutputDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « media/audio/null_audio_sink.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/null_audio_sink.cc
diff --git a/media/audio/null_audio_sink.cc b/media/audio/null_audio_sink.cc
index e9f65fd49c41900da649807553de09abe09be6b7..6d40c93e2b67a28a71aaf7840977a6258408972f 100644
--- a/media/audio/null_audio_sink.cc
+++ b/media/audio/null_audio_sink.cc
@@ -75,8 +75,14 @@ bool NullAudioSink::SetVolume(double volume) {
return volume == 0.0;
}
-OutputDevice* NullAudioSink::GetOutputDevice() {
- return nullptr;
+OutputDeviceInfo NullAudioSink::GetOutputDeviceInfo() {
+ return OutputDeviceInfo();
+}
+
+void NullAudioSink::SwitchOutputDevice(const std::string& device_id,
+ const url::Origin& security_origin,
+ const OutputDeviceStatusCB& callback) {
+ callback.Run(OUTPUT_DEVICE_STATUS_ERROR_INTERNAL);
}
void NullAudioSink::CallRender() {
« no previous file with comments | « media/audio/null_audio_sink.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698