diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webaudio/audio_context.h')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/webaudio/audio_context.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webaudio/audio_context.h b/chromium/third_party/blink/renderer/modules/webaudio/audio_context.h index d93934e4e0c..7a3db4c0c1b 100644 --- a/chromium/third_party/blink/renderer/modules/webaudio/audio_context.h +++ b/chromium/third_party/blink/renderer/modules/webaudio/audio_context.h @@ -19,6 +19,11 @@ class AudioContextOptions; class AudioTimestamp; class Document; class ExceptionState; +class HTMLMediaElement; +class MediaElementAudioSourceNode; +class MediaStream; +class MediaStreamAudioDestinationNode; +class MediaStreamAudioSourceNode; class ScriptState; class WebAudioLatencyHint; @@ -41,14 +46,21 @@ class MODULES_EXPORT AudioContext : public BaseAudioContext { ScriptPromise closeContext(ScriptState*); bool IsContextClosed() const final; - ScriptPromise suspendContext(ScriptState*) final; - ScriptPromise resumeContext(ScriptState*) final; + ScriptPromise suspendContext(ScriptState*); + ScriptPromise resumeContext(ScriptState*); bool HasRealtimeConstraint() final { return true; } void getOutputTimestamp(ScriptState*, AudioTimestamp&); double baseLatency() const; + MediaElementAudioSourceNode* createMediaElementSource(HTMLMediaElement*, + ExceptionState&); + MediaStreamAudioSourceNode* createMediaStreamSource(MediaStream*, + ExceptionState&); + MediaStreamAudioDestinationNode* createMediaStreamDestination( + ExceptionState&); + // Called by handlers of AudioScheduledSourceNode and AudioBufferSourceNode to // notify their associated AudioContext when start() is called. It may resume // the AudioContext if it is now allowed to start. |