webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
WebCore::AudioContext Class Reference

#include <AudioContext.h>

Inheritance diagram for WebCore::AudioContext:
WebCore::ActiveDOMObject WTF::ThreadSafeRefCounted< AudioContext > WebCore::EventTargetWithInlineData WebCore::MediaCanStartListener WebCore::MediaProducer WebCore::PlatformMediaSessionClient WebCore::ContextDestructionObserver WebCore::ContextDestructionObserver WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WTF::ThreadSafeRefCountedBase WebCore::EventTarget WebCore::EventTarget WebCore::ScriptWrappable WebCore::ScriptWrappable WebCore::ScriptWrappable WebCore::ScriptWrappable WebCore::OfflineAudioContext

Classes

class  AutoLocker
 

Public Types

enum  State { State::Suspended, State::Running, State::Interrupted, State::Closed }
 
enum  BehaviorRestrictionFlags { NoRestrictions = 0, RequireUserGestureForAudioStartRestriction = 1 << 0, RequirePageConsentForAudioStartRestriction = 1 << 1 }
 
typedef unsigned BehaviorRestrictions
 
- Public Types inherited from WebCore::ActiveDOMObject
enum  ReasonForSuspension {
  JavaScriptDebuggerPaused, WillDeferLoading, PageCache, PageWillBeSuspended,
  JavaScriptDebuggerPaused, WillDeferLoading, PageCache, PageWillBeSuspended
}
 
enum  ReasonForSuspension {
  JavaScriptDebuggerPaused, WillDeferLoading, PageCache, PageWillBeSuspended,
  JavaScriptDebuggerPaused, WillDeferLoading, PageCache, PageWillBeSuspended
}
 
- Public Types inherited from WebCore::EventTarget
using AddEventListenerOptionsOrBoolean = Variant< AddEventListenerOptions, bool >
 
using ListenerOptionsOrBoolean = Variant< ListenerOptions, bool >
 
using AddEventListenerOptionsOrBoolean = Variant< AddEventListenerOptions, bool >
 
using ListenerOptionsOrBoolean = Variant< ListenerOptions, bool >
 
- Public Types inherited from WebCore::MediaProducer
enum  MediaState {
  IsNotPlaying = 0, IsPlayingAudio = 1 << 0, IsPlayingVideo = 1 << 1, IsPlayingToExternalDevice = 1 << 2,
  RequiresPlaybackTargetMonitoring = 1 << 3, ExternalDeviceAutoPlayCandidate = 1 << 4, DidPlayToEnd = 1 << 5, IsSourceElementPlaying = 1 << 6,
  IsNextTrackControlEnabled = 1 << 7, IsPreviousTrackControlEnabled = 1 << 8, HasPlaybackTargetAvailabilityListener = 1 << 9, HasAudioOrVideo = 1 << 10,
  HasActiveAudioCaptureDevice = 1 << 11, HasActiveVideoCaptureDevice = 1 << 12, IsNotPlaying = 0, IsPlayingAudio = 1 << 0,
  IsPlayingVideo = 1 << 1, IsPlayingToExternalDevice = 1 << 2, RequiresPlaybackTargetMonitoring = 1 << 3, ExternalDeviceAutoPlayCandidate = 1 << 4,
  DidPlayToEnd = 1 << 5, IsSourceElementPlaying = 1 << 6, IsNextTrackControlEnabled = 1 << 7, IsPreviousTrackControlEnabled = 1 << 8,
  HasPlaybackTargetAvailabilityListener = 1 << 9, HasAudioOrVideo = 1 << 10, HasActiveAudioCaptureDevice = 1 << 11, HasActiveVideoCaptureDevice = 1 << 12
}
 
enum  MutedState {
  NoneMuted = 0, AudioIsMuted = 1 << 0, CaptureDevicesAreMuted = 1 << 1, NoneMuted = 0,
  AudioIsMuted = 1 << 0, CaptureDevicesAreMuted = 1 << 1
}
 
enum  MediaState {
  IsNotPlaying = 0, IsPlayingAudio = 1 << 0, IsPlayingVideo = 1 << 1, IsPlayingToExternalDevice = 1 << 2,
  RequiresPlaybackTargetMonitoring = 1 << 3, ExternalDeviceAutoPlayCandidate = 1 << 4, DidPlayToEnd = 1 << 5, IsSourceElementPlaying = 1 << 6,
  IsNextTrackControlEnabled = 1 << 7, IsPreviousTrackControlEnabled = 1 << 8, HasPlaybackTargetAvailabilityListener = 1 << 9, HasAudioOrVideo = 1 << 10,
  HasActiveAudioCaptureDevice = 1 << 11, HasActiveVideoCaptureDevice = 1 << 12, IsNotPlaying = 0, IsPlayingAudio = 1 << 0,
  IsPlayingVideo = 1 << 1, IsPlayingToExternalDevice = 1 << 2, RequiresPlaybackTargetMonitoring = 1 << 3, ExternalDeviceAutoPlayCandidate = 1 << 4,
  DidPlayToEnd = 1 << 5, IsSourceElementPlaying = 1 << 6, IsNextTrackControlEnabled = 1 << 7, IsPreviousTrackControlEnabled = 1 << 8,
  HasPlaybackTargetAvailabilityListener = 1 << 9, HasAudioOrVideo = 1 << 10, HasActiveAudioCaptureDevice = 1 << 11, HasActiveVideoCaptureDevice = 1 << 12
}
 
enum  MutedState {
  NoneMuted = 0, AudioIsMuted = 1 << 0, CaptureDevicesAreMuted = 1 << 1, NoneMuted = 0,
  AudioIsMuted = 1 << 0, CaptureDevicesAreMuted = 1 << 1
}
 
typedef unsigned MediaStateFlags
 
typedef unsigned MutedStateFlags
 
typedef unsigned MediaStateFlags
 
typedef unsigned MutedStateFlags
 

Public Member Functions

virtual ~AudioContext ()
 
bool isInitialized () const
 
bool isOfflineContext ()
 
Document * document () const
 
const Document * hostingDocument () const override
 
AudioDestinationNode * destination ()
 
size_t currentSampleFrame () const
 
double currentTime () const
 
float sampleRate () const
 
unsigned long activeSourceCount () const
 
void incrementActiveSourceCount ()
 
void decrementActiveSourceCount ()
 
ExceptionOr< Ref< AudioBuffer > > createBuffer (unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
 
ExceptionOr< Ref< AudioBuffer > > createBuffer (ArrayBuffer &, bool mixToMono)
 
void decodeAudioData (Ref< ArrayBuffer > &&, RefPtr< AudioBufferCallback > &&, RefPtr< AudioBufferCallback > &&)
 
AudioListener * listener ()
 
void suspend (DOMPromise< void > &&)
 
void resume (DOMPromise< void > &&)
 
void close (DOMPromise< void > &&)
 
State state () const
 
Ref< AudioBufferSourceNode > createBufferSource ()
 
Ref< GainNode > createGain ()
 
Ref< BiquadFilterNode > createBiquadFilter ()
 
Ref< WaveShaperNode > createWaveShaper ()
 
ExceptionOr< Ref< DelayNode > > createDelay (double maxDelayTime)
 
Ref< PannerNode > createPanner ()
 
Ref< ConvolverNode > createConvolver ()
 
Ref< DynamicsCompressorNode > createDynamicsCompressor ()
 
Ref< AnalyserNode > createAnalyser ()
 
ExceptionOr< Ref< ScriptProcessorNode > > createScriptProcessor (size_t bufferSize, size_t numberOfInputChannels, size_t numberOfOutputChannels)
 
ExceptionOr< Ref< ChannelSplitterNode > > createChannelSplitter (size_t numberOfOutputs)
 
ExceptionOr< Ref< ChannelMergerNode > > createChannelMerger (size_t numberOfInputs)
 
Ref< OscillatorNode > createOscillator ()
 
ExceptionOr< Ref< PeriodicWave > > createPeriodicWave (Float32Array &real, Float32Array &imaginary)
 
void notifyNodeFinishedProcessing (AudioNode *)
 
void handlePreRenderTasks ()
 
void handlePostRenderTasks ()
 
void derefFinishedSourceNodes ()
 
void markForDeletion (AudioNode *)
 
void deleteMarkedNodes ()
 
void addAutomaticPullNode (AudioNode *)
 
void removeAutomaticPullNode (AudioNode *)
 
void processAutomaticPullNodes (size_t framesToProcess)
 
void incrementConnectionCount ()
 
unsigned connectionCount () const
 
void setAudioThread (ThreadIdentifier thread)
 
ThreadIdentifier audioThread () const
 
bool isAudioThread () const
 
bool isAudioThreadFinished ()
 
void lock (bool &mustReleaseLock)
 
bool tryLock (bool &mustReleaseLock)
 
void unlock ()
 
bool isGraphOwner () const
 
void addDeferredFinishDeref (AudioNode *)
 
void handleDeferredFinishDerefs ()
 
void markSummingJunctionDirty (AudioSummingJunction *)
 
void markAudioNodeOutputDirty (AudioNodeOutput *)
 
void removeMarkedSummingJunction (AudioSummingJunction *)
 
EventTargetInterface eventTargetInterface () const final
 
ScriptExecutionContext * scriptExecutionContext () const final
 
void startRendering ()
 
void fireCompletionEvent ()
 
BehaviorRestrictions behaviorRestrictions () const
 
void addBehaviorRestriction (BehaviorRestrictions restriction)
 
void removeBehaviorRestriction (BehaviorRestrictions restriction)
 
void isPlayingAudioDidChange ()
 
void nodeWillBeginPlayback ()
 
- Public Member Functions inherited from WebCore::ActiveDOMObject
void suspendIfNeeded ()
 
void assertSuspendIfNeededWasCalled () const
 
virtual bool hasPendingActivity () const
 
virtual void suspend (ReasonForSuspension)
 
virtual void resume ()
 
template<class T >
void setPendingActivity (T *thisObject)
 
template<class T >
void unsetPendingActivity (T *thisObject)
 
void suspendIfNeeded ()
 
void assertSuspendIfNeededWasCalled () const
 
virtual bool hasPendingActivity () const
 
virtual void suspend (ReasonForSuspension)
 
virtual void resume ()
 
template<class T >
void setPendingActivity (T *thisObject)
 
template<class T >
void unsetPendingActivity (T *thisObject)
 
- Public Member Functions inherited from WebCore::ContextDestructionObserver
WEBCORE_EXPORT ContextDestructionObserver (ScriptExecutionContext *)
 
virtual WEBCORE_EXPORT void contextDestroyed ()
 
ScriptExecutionContext * scriptExecutionContext () const
 
WEBCORE_EXPORT ContextDestructionObserver (ScriptExecutionContext *)
 
virtual WEBCORE_EXPORT void contextDestroyed ()
 
ScriptExecutionContext * scriptExecutionContext () const
 
- Public Member Functions inherited from WTF::ThreadSafeRefCounted< AudioContext >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::ThreadSafeRefCountedBase
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
 ThreadSafeRefCountedBase ()=default
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
- Public Member Functions inherited from WebCore::EventTarget
void ref ()
 
void deref ()
 
virtual Node * toNode ()
 
virtual DOMWindow * toDOMWindow ()
 
virtual bool isMessagePort () const
 
WEBCORE_EXPORT void addEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, AddEventListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT void removeEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, ListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT ExceptionOr< bool > dispatchEventForBindings (Event &)
 
virtual bool addEventListener (const AtomicString &eventType, Ref< EventListener > &&, const AddEventListenerOptions &={ })
 
virtual bool removeEventListener (const AtomicString &eventType, EventListener &, const ListenerOptions &)
 
virtual void removeAllEventListeners ()
 
virtual bool dispatchEvent (Event &)
 
virtual void uncaughtExceptionInEventHandler ()
 
bool setAttributeEventListener (const AtomicString &eventType, RefPtr< EventListener > &&)
 
EventListener * attributeEventListener (const AtomicString &eventType)
 
bool hasEventListeners () const
 
bool hasEventListeners (const AtomicString &eventType) const
 
bool hasCapturingEventListeners (const AtomicString &eventType)
 
bool hasActiveEventListeners (const AtomicString &eventType) const
 
const EventListenerVector & eventListeners (const AtomicString &eventType)
 
bool fireEventListeners (Event &)
 
bool isFiringEventListeners () const
 
void visitJSEventListeners (JSC::SlotVisitor &)
 
void invalidateJSEventListeners (JSC::JSObject *)
 
void ref ()
 
void deref ()
 
virtual Node * toNode ()
 
virtual DOMWindow * toDOMWindow ()
 
virtual bool isMessagePort () const
 
WEBCORE_EXPORT void addEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, AddEventListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT void removeEventListenerForBindings (const AtomicString &eventType, RefPtr< EventListener > &&, ListenerOptionsOrBoolean &&)
 
WEBCORE_EXPORT ExceptionOr< bool > dispatchEventForBindings (Event &)
 
virtual bool addEventListener (const AtomicString &eventType, Ref< EventListener > &&, const AddEventListenerOptions &={ })
 
virtual bool removeEventListener (const AtomicString &eventType, EventListener &, const ListenerOptions &)
 
virtual void removeAllEventListeners ()
 
virtual bool dispatchEvent (Event &)
 
virtual void uncaughtExceptionInEventHandler ()
 
bool setAttributeEventListener (const AtomicString &eventType, RefPtr< EventListener > &&)
 
EventListener * attributeEventListener (const AtomicString &eventType)
 
bool hasEventListeners () const
 
bool hasEventListeners (const AtomicString &eventType) const
 
bool hasCapturingEventListeners (const AtomicString &eventType)
 
bool hasActiveEventListeners (const AtomicString &eventType) const
 
const EventListenerVector & eventListeners (const AtomicString &eventType)
 
bool fireEventListeners (Event &)
 
bool isFiringEventListeners () const
 
void visitJSEventListeners (JSC::SlotVisitor &)
 
void invalidateJSEventListeners (JSC::JSObject *)
 
- Public Member Functions inherited from WebCore::ScriptWrappable
JSDOMObject * wrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
JSDOMObject * wrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 

Static Public Member Functions

static RefPtr< AudioContext > create (Document &)
 
static unsigned maxNumberOfChannels ()
 
- Static Public Member Functions inherited from WebCore::ScriptWrappable
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 

Static Public Attributes

static unsigned s_hardwareContextCount
 

Protected Member Functions

 AudioContext (Document &)
 
 AudioContext (Document &, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
 
- Protected Member Functions inherited from WebCore::ActiveDOMObject
 ActiveDOMObject (ScriptExecutionContext *)
 
virtual ~ActiveDOMObject ()
 
 ActiveDOMObject (ScriptExecutionContext *)
 
virtual ~ActiveDOMObject ()
 
- Protected Member Functions inherited from WebCore::ContextDestructionObserver
virtual WEBCORE_EXPORT ~ContextDestructionObserver ()
 
void observeContext (ScriptExecutionContext *)
 
virtual WEBCORE_EXPORT ~ContextDestructionObserver ()
 
void observeContext (ScriptExecutionContext *)
 
- Protected Member Functions inherited from WTF::ThreadSafeRefCounted< AudioContext >
 ThreadSafeRefCounted ()=default
 
 ThreadSafeRefCounted ()=default
 
 ThreadSafeRefCounted ()=default
 
- Protected Member Functions inherited from WTF::ThreadSafeRefCountedBase
bool derefBase () const
 
bool derefBase () const
 
bool derefBase () const
 
- Protected Member Functions inherited from WebCore::EventTargetWithInlineData
EventTargetData * eventTargetData () final
 
EventTargetData * eventTargetDataConcurrently () final
 
EventTargetData & ensureEventTargetData () final
 
EventTargetData * eventTargetData () final
 
EventTargetData * eventTargetDataConcurrently () final
 
EventTargetData & ensureEventTargetData () final
 
- Protected Member Functions inherited from WebCore::EventTarget
virtual ~EventTarget ()=default
 
const EventTargetData * eventTargetData () const
 
virtual ~EventTarget ()=default
 
const EventTargetData * eventTargetData () const
 
- Protected Member Functions inherited from WebCore::ScriptWrappable
 ~ScriptWrappable ()
 
 ~ScriptWrappable ()
 
- Protected Member Functions inherited from WebCore::MediaCanStartListener
virtual ~MediaCanStartListener ()
 
virtual ~MediaCanStartListener ()
 
- Protected Member Functions inherited from WebCore::MediaProducer
virtual ~MediaProducer ()
 
virtual ~MediaProducer ()
 

Static Protected Member Functions

static bool isSampleRateRangeGood (float sampleRate)
 

Additional Inherited Members

- Protected Attributes inherited from WebCore::ContextDestructionObserver
ScriptExecutionContext * m_scriptExecutionContext
 

Member Typedef Documentation

◆ BehaviorRestrictions

Member Enumeration Documentation

◆ BehaviorRestrictionFlags

Enumerator
NoRestrictions 
RequireUserGestureForAudioStartRestriction 
RequirePageConsentForAudioStartRestriction 

◆ State

Enumerator
Suspended 
Running 
Interrupted 
Closed 

Constructor & Destructor Documentation

◆ ~AudioContext()

virtual WebCore::AudioContext::~AudioContext ( )
virtual

◆ AudioContext() [1/2]

WebCore::AudioContext::AudioContext ( Document &  )
explicitprotected

◆ AudioContext() [2/2]

WebCore::AudioContext::AudioContext ( Document &  ,
unsigned  numberOfChannels,
size_t  numberOfFrames,
float  sampleRate 
)
protected

Member Function Documentation

◆ activeSourceCount()

unsigned long WebCore::AudioContext::activeSourceCount ( ) const
inline

◆ addAutomaticPullNode()

void WebCore::AudioContext::addAutomaticPullNode ( AudioNode *  )

◆ addBehaviorRestriction()

void WebCore::AudioContext::addBehaviorRestriction ( BehaviorRestrictions  restriction)
inline

◆ addDeferredFinishDeref()

void WebCore::AudioContext::addDeferredFinishDeref ( AudioNode *  )

◆ audioThread()

ThreadIdentifier WebCore::AudioContext::audioThread ( ) const
inline

◆ behaviorRestrictions()

BehaviorRestrictions WebCore::AudioContext::behaviorRestrictions ( ) const
inline

◆ close()

void WebCore::AudioContext::close ( DOMPromise< void > &&  )

◆ connectionCount()

unsigned WebCore::AudioContext::connectionCount ( ) const
inline

◆ create()

static RefPtr<AudioContext> WebCore::AudioContext::create ( Document &  )
static

◆ createAnalyser()

Ref<AnalyserNode> WebCore::AudioContext::createAnalyser ( )

◆ createBiquadFilter()

Ref<BiquadFilterNode> WebCore::AudioContext::createBiquadFilter ( )

◆ createBuffer() [1/2]

ExceptionOr<Ref<AudioBuffer> > WebCore::AudioContext::createBuffer ( unsigned  numberOfChannels,
size_t  numberOfFrames,
float  sampleRate 
)

◆ createBuffer() [2/2]

ExceptionOr<Ref<AudioBuffer> > WebCore::AudioContext::createBuffer ( ArrayBuffer &  ,
bool  mixToMono 
)

◆ createBufferSource()

Ref<AudioBufferSourceNode> WebCore::AudioContext::createBufferSource ( )

◆ createChannelMerger()

ExceptionOr<Ref<ChannelMergerNode> > WebCore::AudioContext::createChannelMerger ( size_t  numberOfInputs)

◆ createChannelSplitter()

ExceptionOr<Ref<ChannelSplitterNode> > WebCore::AudioContext::createChannelSplitter ( size_t  numberOfOutputs)

◆ createConvolver()

Ref<ConvolverNode> WebCore::AudioContext::createConvolver ( )

◆ createDelay()

ExceptionOr<Ref<DelayNode> > WebCore::AudioContext::createDelay ( double  maxDelayTime)

◆ createDynamicsCompressor()

Ref<DynamicsCompressorNode> WebCore::AudioContext::createDynamicsCompressor ( )

◆ createGain()

Ref<GainNode> WebCore::AudioContext::createGain ( )

◆ createOscillator()

Ref<OscillatorNode> WebCore::AudioContext::createOscillator ( )

◆ createPanner()

Ref<PannerNode> WebCore::AudioContext::createPanner ( )

◆ createPeriodicWave()

ExceptionOr<Ref<PeriodicWave> > WebCore::AudioContext::createPeriodicWave ( Float32Array &  real,
Float32Array &  imaginary 
)

◆ createScriptProcessor()

ExceptionOr<Ref<ScriptProcessorNode> > WebCore::AudioContext::createScriptProcessor ( size_t  bufferSize,
size_t  numberOfInputChannels,
size_t  numberOfOutputChannels 
)

◆ createWaveShaper()

Ref<WaveShaperNode> WebCore::AudioContext::createWaveShaper ( )

◆ currentSampleFrame()

size_t WebCore::AudioContext::currentSampleFrame ( ) const
inline

◆ currentTime()

double WebCore::AudioContext::currentTime ( ) const
inline

◆ decodeAudioData()

void WebCore::AudioContext::decodeAudioData ( Ref< ArrayBuffer > &&  ,
RefPtr< AudioBufferCallback > &&  ,
RefPtr< AudioBufferCallback > &&   
)

◆ decrementActiveSourceCount()

void WebCore::AudioContext::decrementActiveSourceCount ( )

◆ deleteMarkedNodes()

void WebCore::AudioContext::deleteMarkedNodes ( )

◆ derefFinishedSourceNodes()

void WebCore::AudioContext::derefFinishedSourceNodes ( )

◆ destination()

AudioDestinationNode* WebCore::AudioContext::destination ( )
inline

◆ document()

Document* WebCore::AudioContext::document ( ) const

◆ eventTargetInterface()

EventTargetInterface WebCore::AudioContext::eventTargetInterface ( ) const
inlinefinalvirtual

Implements WebCore::EventTarget.

◆ fireCompletionEvent()

void WebCore::AudioContext::fireCompletionEvent ( )

◆ handleDeferredFinishDerefs()

void WebCore::AudioContext::handleDeferredFinishDerefs ( )

◆ handlePostRenderTasks()

void WebCore::AudioContext::handlePostRenderTasks ( )

◆ handlePreRenderTasks()

void WebCore::AudioContext::handlePreRenderTasks ( )

◆ hostingDocument()

const Document* WebCore::AudioContext::hostingDocument ( ) const
overridevirtual

◆ incrementActiveSourceCount()

void WebCore::AudioContext::incrementActiveSourceCount ( )

◆ incrementConnectionCount()

void WebCore::AudioContext::incrementConnectionCount ( )
inline

◆ isAudioThread()

bool WebCore::AudioContext::isAudioThread ( ) const

◆ isAudioThreadFinished()

bool WebCore::AudioContext::isAudioThreadFinished ( )
inline

◆ isGraphOwner()

bool WebCore::AudioContext::isGraphOwner ( ) const

◆ isInitialized()

bool WebCore::AudioContext::isInitialized ( ) const

◆ isOfflineContext()

bool WebCore::AudioContext::isOfflineContext ( )
inline

◆ isPlayingAudioDidChange()

void WebCore::AudioContext::isPlayingAudioDidChange ( )

◆ isSampleRateRangeGood()

static bool WebCore::AudioContext::isSampleRateRangeGood ( float  sampleRate)
staticprotected

◆ listener()

AudioListener* WebCore::AudioContext::listener ( )
inline

◆ lock()

void WebCore::AudioContext::lock ( bool &  mustReleaseLock)

◆ markAudioNodeOutputDirty()

void WebCore::AudioContext::markAudioNodeOutputDirty ( AudioNodeOutput *  )

◆ markForDeletion()

void WebCore::AudioContext::markForDeletion ( AudioNode *  )

◆ markSummingJunctionDirty()

void WebCore::AudioContext::markSummingJunctionDirty ( AudioSummingJunction *  )

◆ maxNumberOfChannels()

static unsigned WebCore::AudioContext::maxNumberOfChannels ( )
inlinestatic

◆ nodeWillBeginPlayback()

void WebCore::AudioContext::nodeWillBeginPlayback ( )

◆ notifyNodeFinishedProcessing()

void WebCore::AudioContext::notifyNodeFinishedProcessing ( AudioNode *  )

◆ processAutomaticPullNodes()

void WebCore::AudioContext::processAutomaticPullNodes ( size_t  framesToProcess)

◆ removeAutomaticPullNode()

void WebCore::AudioContext::removeAutomaticPullNode ( AudioNode *  )

◆ removeBehaviorRestriction()

void WebCore::AudioContext::removeBehaviorRestriction ( BehaviorRestrictions  restriction)
inline

◆ removeMarkedSummingJunction()

void WebCore::AudioContext::removeMarkedSummingJunction ( AudioSummingJunction *  )

◆ resume()

void WebCore::AudioContext::resume ( DOMPromise< void > &&  )

◆ sampleRate()

float WebCore::AudioContext::sampleRate ( ) const
inline

◆ scriptExecutionContext()

ScriptExecutionContext* WebCore::AudioContext::scriptExecutionContext ( ) const
finalvirtual

Implements WebCore::EventTarget.

◆ setAudioThread()

void WebCore::AudioContext::setAudioThread ( ThreadIdentifier  thread)
inline

◆ startRendering()

void WebCore::AudioContext::startRendering ( )

◆ state()

AudioContext::State AudioContext::state ( ) const
inline

◆ suspend()

void WebCore::AudioContext::suspend ( DOMPromise< void > &&  )

◆ tryLock()

bool WebCore::AudioContext::tryLock ( bool &  mustReleaseLock)

◆ unlock()

void WebCore::AudioContext::unlock ( )

Member Data Documentation

◆ s_hardwareContextCount

unsigned WebCore::AudioContext::s_hardwareContextCount
static

The documentation for this class was generated from the following file: