| Index: third_party/WebKit/Source/platform/audio/AudioIOCallback.h
|
| diff --git a/third_party/WebKit/Source/platform/audio/AudioIOCallback.h b/third_party/WebKit/Source/platform/audio/AudioIOCallback.h
|
| index ae1537db2b0ad1d04a1827eeb3426830a6147934..1d3b0c46eedfabb670b73c0058c455dc7ef9677c 100644
|
| --- a/third_party/WebKit/Source/platform/audio/AudioIOCallback.h
|
| +++ b/third_party/WebKit/Source/platform/audio/AudioIOCallback.h
|
| @@ -29,10 +29,20 @@
|
| #ifndef AudioIOCallback_h
|
| #define AudioIOCallback_h
|
|
|
| +#include "base/time/time.h"
|
| +
|
| namespace blink {
|
|
|
| class AudioBus;
|
|
|
| +struct AudioIOPosition {
|
| + // Audio stream position in seconds.
|
| + double position;
|
| + // System timestamp in seconds corresponding to the contained |position|
|
| + // value.
|
| + double timestamp;
|
| +};
|
| +
|
| // Abstract base-class for isochronous audio I/O client.
|
| class AudioIOCallback {
|
| public:
|
| @@ -41,7 +51,8 @@ class AudioIOCallback {
|
| // not 0).
|
| virtual void render(AudioBus* sourceBus,
|
| AudioBus* destinationBus,
|
| - size_t framesToProcess) = 0;
|
| + size_t framesToProcess,
|
| + const AudioIOPosition& outputPosition) = 0;
|
|
|
| virtual ~AudioIOCallback() {}
|
| };
|
|
|