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

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: Revert DCHECK in destructor 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
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_output.h ('k') | media/audio/audio_output_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b85b811a0d46e7fa6cf7f9f1e78617063cd2b87c 100644
--- a/content/renderer/pepper/pepper_platform_audio_output.cc
+++ b/content/renderer/pepper/pepper_platform_audio_output.cc
@@ -72,6 +72,10 @@ void PepperPlatformAudioOutput::ShutDown() {
void PepperPlatformAudioOutput::OnStateChanged(
media::AudioOutputIPCDelegateState state) {}
+void PepperPlatformAudioOutput::OnDeviceAuthorized(
+ bool success,
+ const media::AudioParameters& output_params) {}
bbudge 2015/09/15 11:39:42 I'm assuming 'success' is always 'true' here. If s
Guido Urdaneta 2015/09/15 11:55:14 Actually, this is never called because the Request
bbudge 2015/09/15 12:59:12 OK that's fine.
+
void PepperPlatformAudioOutput::OnStreamCreated(
base::SharedMemoryHandle handle,
base::SyncSocket::Handle socket_handle,
@@ -98,7 +102,6 @@ void PepperPlatformAudioOutput::OnStreamCreated(
}
void PepperPlatformAudioOutput::OnOutputDeviceSwitched(
- int request_id,
media::SwitchOutputDeviceResult result) {}
void PepperPlatformAudioOutput::OnIPCClosed() { ipc_.reset(); }
@@ -143,9 +146,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() {
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_output.h ('k') | media/audio/audio_output_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698