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

Unified Diff: ppapi/proxy/media_stream_audio_track_resource.cc

Issue 414643003: Support configuring the audio buffer duration in the Pepper MediaStream API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests! Created 6 years, 5 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: ppapi/proxy/media_stream_audio_track_resource.cc
diff --git a/ppapi/proxy/media_stream_audio_track_resource.cc b/ppapi/proxy/media_stream_audio_track_resource.cc
index 32fdd2846fe7a53f562481f4dec18472ecf0eb5b..5d30362414ebec73452f6a9f17550c5c464ecb77 100644
--- a/ppapi/proxy/media_stream_audio_track_resource.cc
+++ b/ppapi/proxy/media_stream_audio_track_resource.cc
@@ -62,10 +62,12 @@ int32_t MediaStreamAudioTrackResource::Configure(
case PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS:
attributes.buffers = attrib_list[i + 1];
break;
+ case PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION:
+ attributes.duration = attrib_list[i + 1];
+ break;
case PP_MEDIASTREAMAUDIOTRACK_ATTRIB_SAMPLE_RATE:
case PP_MEDIASTREAMAUDIOTRACK_ATTRIB_SAMPLE_SIZE:
case PP_MEDIASTREAMAUDIOTRACK_ATTRIB_CHANNELS:
- case PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION:
return PP_ERROR_NOTSUPPORTED;
default:
return PP_ERROR_BADARGUMENT;

Powered by Google App Engine
This is Rietveld 408576698