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

Unified Diff: content/renderer/pepper/pepper_platform_audio_output.cc

Issue 1323403005: Allow AudioOutputDevice objects to be initialized with a specific hardware output device and store … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Palmer's comments Created 5 years, 3 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: content/renderer/pepper/pepper_platform_audio_output.cc
diff --git a/content/renderer/pepper/pepper_platform_audio_output.cc b/content/renderer/pepper/pepper_platform_audio_output.cc
index 010b30f75db5c87f8aa86e17c9c1f9262ad7b77d..f5ae3ba0d2b39344f504e07f5b7030c59227d0f5 100644
--- a/content/renderer/pepper/pepper_platform_audio_output.cc
+++ b/content/renderer/pepper/pepper_platform_audio_output.cc
@@ -72,6 +72,12 @@ void PepperPlatformAudioOutput::ShutDown() {
void PepperPlatformAudioOutput::OnStateChanged(
media::AudioOutputIPCDelegateState state) {}
+void PepperPlatformAudioOutput::OnDeviceAuthorized(
+ bool success,
+ const media::AudioParameters& output_params) {
+ NOTREACHED();
+}
+
void PepperPlatformAudioOutput::OnStreamCreated(
base::SharedMemoryHandle handle,
base::SyncSocket::Handle socket_handle,
@@ -98,7 +104,6 @@ void PepperPlatformAudioOutput::OnStreamCreated(
}
void PepperPlatformAudioOutput::OnOutputDeviceSwitched(
- int request_id,
media::SwitchOutputDeviceResult result) {}
void PepperPlatformAudioOutput::OnIPCClosed() { ipc_.reset(); }
@@ -143,9 +148,8 @@ bool PepperPlatformAudioOutput::Initialize(int sample_rate,
void PepperPlatformAudioOutput::InitializeOnIOThread(
const media::AudioParameters& params) {
DCHECK(io_task_runner_->BelongsToCurrentThread());
- const int kSessionId = 0;
if (ipc_)
- ipc_->CreateStream(this, params, kSessionId);
+ ipc_->CreateStream(this, params);
}
void PepperPlatformAudioOutput::StartPlaybackOnIOThread() {

Powered by Google App Engine
This is Rietveld 408576698