summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_output_stream_sink.cc
diff options
context:
space:
mode:
authorguidou <guidou@chromium.org>2015-06-15 17:53:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-16 00:54:36 +0000
commita0037e4cbf52a6e92e3fa01fafbd7e3667cccf37 (patch)
treeddf1d4cc6765163cce37546e1179a80d60aceef1 /media/audio/audio_output_stream_sink.cc
parent1d2ecc2c0406ccbec246aa6e5eb041f0d5b2bbc8 (diff)
downloadchromium_src-a0037e4cbf52a6e92e3fa01fafbd7e3667cccf37.zip
chromium_src-a0037e4cbf52a6e92e3fa01fafbd7e3667cccf37.tar.gz
chromium_src-a0037e4cbf52a6e92e3fa01fafbd7e3667cccf37.tar.bz2
Add support for the audio-output-device switching IPC mechanism to the renderer lower layers (media::AudioOutputDevice, content::AudioMessageFilter and related classes).
The idea is to provide support for the Audio Output Devices API (http://w3c.github.io/mediacapture-output/) BUG=438023 Committed: https://crrev.com/8c7fc2c8746c9cb294a5906572f23fbfc34726b3 Cr-Commit-Position: refs/heads/master@{#334451} Review URL: https://codereview.chromium.org/1184473002 Cr-Commit-Position: refs/heads/master@{#334520}
Diffstat (limited to 'media/audio/audio_output_stream_sink.cc')
-rw-r--r--media/audio/audio_output_stream_sink.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/media/audio/audio_output_stream_sink.cc b/media/audio/audio_output_stream_sink.cc
index e233e99..e290e0f 100644
--- a/media/audio/audio_output_stream_sink.cc
+++ b/media/audio/audio_output_stream_sink.cc
@@ -57,7 +57,14 @@ bool AudioOutputStreamSink::SetVolume(double volume) {
audio_task_runner_->PostTask(
FROM_HERE, base::Bind(&AudioOutputStreamSink::DoSetVolume, this, volume));
return true;
-};
+}
+
+void AudioOutputStreamSink::SwitchOutputDevice(
+ const std::string& device_id,
+ const GURL& security_origin,
+ const SwitchOutputDeviceCB& callback) {
+ callback.Run(SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_SUPPORTED);
+}
int AudioOutputStreamSink::OnMoreData(AudioBus* dest,
uint32 total_bytes_delay) {