| Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| index 1a2baa077bae1aff1bfe02298a2f025f4e258e17..b3011004d5c9533d7dff2408cd0bfa44ea631ac0 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
|
| @@ -52,6 +52,7 @@ class AnalyserNode;
|
| class AudioBuffer;
|
| class AudioBufferCallback;
|
| class AudioBufferSourceNode;
|
| +class AudioContextOptions;
|
| class AudioListener;
|
| class BaseAudioContextTest;
|
| class BiquadFilterNode;
|
| @@ -101,7 +102,9 @@ class MODULES_EXPORT BaseAudioContext
|
| enum AudioContextState { Suspended, Running, Closed };
|
|
|
| // Create an AudioContext for rendering to the audio hardware.
|
| - static BaseAudioContext* create(Document&, ExceptionState&);
|
| + static BaseAudioContext* create(Document&,
|
| + const AudioContextOptions&,
|
| + ExceptionState&);
|
|
|
| ~BaseAudioContext() override;
|
|
|
| @@ -138,7 +141,15 @@ class MODULES_EXPORT BaseAudioContext
|
| }
|
|
|
| float sampleRate() const {
|
| - return m_destinationNode ? m_destinationNode->handler().sampleRate() : 0;
|
| + return m_destinationNode
|
| + ? m_destinationNode->audioDestinationHandler().sampleRate()
|
| + : closedContextSampleRate();
|
| + }
|
| +
|
| + float framesPerBuffer() const {
|
| + return m_destinationNode
|
| + ? m_destinationNode->audioDestinationHandler().framesPerBuffer()
|
| + : 0;
|
| }
|
|
|
| size_t callbackBufferSize() const {
|
|
|