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

Side by Side Diff: ppapi/shared_impl/media_stream_audio_track_shared.h

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: Add clarifying comment about buffer size. Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_
6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_
7 7
8 #include "ppapi/c/ppb_audio_buffer.h" 8 #include "ppapi/c/ppb_audio_buffer.h"
9 #include "ppapi/shared_impl/ppapi_shared_export.h" 9 #include "ppapi/shared_impl/ppapi_shared_export.h"
10 10
11 namespace ppapi { 11 namespace ppapi {
12 12
13 class PPAPI_SHARED_EXPORT MediaStreamAudioTrackShared { 13 class PPAPI_SHARED_EXPORT MediaStreamAudioTrackShared {
14 public: 14 public:
15 struct Attributes { 15 struct Attributes {
16 Attributes() : buffers(0) {} 16 Attributes() : buffers(0), duration(0) {}
17 int32_t buffers; 17 int32_t buffers;
18 int32_t duration;
18 }; 19 };
19 20
20 static bool VerifyAttributes(const Attributes& attributes); 21 static bool VerifyAttributes(const Attributes& attributes);
21 }; 22 };
22 23
23 } // namespace ppapi 24 } // namespace ppapi
24 25
25 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ 26 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698