Support audio output device enumeration and selection in PPAPI
- Keep the current |PPB_Audio| interface unchanged
- Add a new dev interface: |PPB_AudioOutput_Dev|
- Implement |PPB_AudioOutput_Dev| using the typical HostResource
implementations like |PPB_AudioInput_Dev|
- Add ppapi/proxy/audio_output_resource.h/cc etc. to implement
|AudioOutputResource|
- Add content/renderer/pepper/pepper_audio_output_host.h/cc etc.
to implement |PepperAudioOutputHost|
- Keep ppb_audio_proxy.h/cc, ppb_audio_shared.h/cc, ppb_audio_impl.h/cc
unchanged, so that the current |PPB_Audio| will not be affected.
- Modify content/renderer/pepper/pepper_platform_audio_output.h/cc to
accept both |AudioHelper| and |PepperAudioOutputHost| clients
- The way to implement |PepperAudioOutputHost| is borrowed from
"media/audio/audio_output_device.cc" where audio output selection isi
supported for javascript.
- Add necessary IPC message definitions for |PPB_AudioOutput_Dev|
BUG=701584
R= [email protected], [email protected], [email protected]
Review-Url: https://codereview.chromium.org/2755613002
Cr-Commit-Position: refs/heads/master@{#462889}
diff --git a/ppapi/proxy/BUILD.gn b/ppapi/proxy/BUILD.gn
index da070f8..b572778 100644
--- a/ppapi/proxy/BUILD.gn
+++ b/ppapi/proxy/BUILD.gn
@@ -219,6 +219,8 @@
sources += [
"audio_input_resource.cc",
"audio_input_resource.h",
+ "audio_output_resource.cc",
+ "audio_output_resource.h",
"broker_dispatcher.cc",
"broker_dispatcher.h",
"browser_font_singleton_resource.cc",