| Index: third_party/WebKit/public/platform/WebAudioDevice.h
|
| diff --git a/third_party/WebKit/public/platform/WebAudioDevice.h b/third_party/WebKit/public/platform/WebAudioDevice.h
|
| index d27483bc32a9c5010a3cef706acba13ba0082679..ae72e237f01c75928508a4ec82855ad80d7479ce 100644
|
| --- a/third_party/WebKit/public/platform/WebAudioDevice.h
|
| +++ b/third_party/WebKit/public/platform/WebAudioDevice.h
|
| @@ -34,6 +34,16 @@
|
|
|
| namespace blink {
|
|
|
| +// Representation of device audio stream position.
|
| +
|
| +struct BLINK_PLATFORM_EXPORT WebAudioTimestamp {
|
| + WebAudioTimestamp() = default;
|
| + WebAudioTimestamp(size_t frames, double seconds)
|
| + : frames(frames), seconds(seconds) {}
|
| + size_t frames;
|
| + double seconds;
|
| +};
|
| +
|
| // Abstract interface to the Chromium audio system.
|
|
|
| class WebAudioDevice {
|
| @@ -41,6 +51,8 @@ public:
|
| class BLINK_PLATFORM_EXPORT RenderCallback {
|
| public:
|
| virtual void render(const WebVector<float*>& sourceData, const WebVector<float*>& destinationData, size_t numberOfFrames);
|
| + // An alternate version which provides also a current audio timestamp for the device, default implementation just invokes the above method.
|
| + virtual void render(const WebVector<float*>& sourceData, const WebVector<float*>& destinationData, size_t numberOfFrames, const WebAudioTimestamp&);
|
|
|
| protected:
|
| virtual ~RenderCallback();
|
|
|