Index: Source/modules/webaudio/AudioBufferSourceNode.h |
diff --git a/Source/modules/webaudio/AudioBufferSourceNode.h b/Source/modules/webaudio/AudioBufferSourceNode.h |
index e9990694824f186f4cc55f08f7f6236b007d87d7..1f53b2a2c02521ce01e47fcaef4e4fc0a8235ee8 100644 |
--- a/Source/modules/webaudio/AudioBufferSourceNode.h |
+++ b/Source/modules/webaudio/AudioBufferSourceNode.h |
@@ -98,6 +98,8 @@ public: |
private: |
AudioBufferSourceNode(AudioContext*, float sampleRate); |
+ void startSource(double when, double grainOffset, double grainDuration, bool isDurationGiven, ExceptionState&); |
+ |
// Returns true on success. |
bool renderFromBuffer(AudioBus*, unsigned destinationFrameOffset, size_t numberOfFrames); |
@@ -132,7 +134,8 @@ private: |
bool m_isGrain; |
double m_grainOffset; // in seconds |
double m_grainDuration; // in seconds |
- |
+ // True if grainDuration is given explicitly (via 3 arg start method). |
+ bool m_isDurationGiven; |
// totalPitchRate() returns the instantaneous pitch rate (non-time preserving). |
// It incorporates the base pitch rate, any sample-rate conversion factor from the buffer, and any doppler shift from an associated panner node. |
double totalPitchRate(); |