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

Unified Diff: media/audio/audio_output_device.h

Issue 1856673002: Mojofication of the Chrome Audio Rendering Prototype Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « media/audio/audio_output_controller.cc ('k') | media/audio/audio_output_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_device.h
diff --git a/media/audio/audio_output_device.h b/media/audio/audio_output_device.h
index 20f4c5b2f00f1ae7e50f2489e6763b03b4e8b28f..d5fc708cc375cd30d8dba0296802960f0a255d51 100644
--- a/media/audio/audio_output_device.h
+++ b/media/audio/audio_output_device.h
@@ -110,11 +110,14 @@ class MEDIA_EXPORT AudioOutputDevice
void OnStateChanged(AudioOutputIPCDelegateState state) override;
void OnDeviceAuthorized(OutputDeviceStatus device_status,
const media::AudioParameters& output_params) override;
- void OnStreamCreated(base::SharedMemoryHandle handle,
+ void OnStreamCreated(content::mojom::AudioOutputStreamPtr* stream,
+ base::SharedMemoryHandle handle,
base::SyncSocket::Handle socket_handle,
int length) override;
void OnIPCClosed() override;
+ AudioOutputIPC* getIPC() override;
+
protected:
// Magic required by ref_counted.h to avoid any code deleting the object
// accidentally while there are references to it.
@@ -157,6 +160,8 @@ class MEDIA_EXPORT AudioOutputDevice
// be accessed on the IO thread.
scoped_ptr<AudioOutputIPC> ipc_;
+ content::mojom::AudioOutputStreamPtr* stream_;
+
// Current state (must only be accessed from the IO thread). See comments for
// State enum above.
State state_;
« no previous file with comments | « media/audio/audio_output_controller.cc ('k') | media/audio/audio_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698