Class WebAudioAdapter
Represents an adapter for the WebAudio domain to simplify the command interface.
public class WebAudioAdapter- Inheritance
- 
      
      WebAudioAdapter
- Inherited Members
Constructors
WebAudioAdapter(IDevToolsSession)
Initializes a new instance of the WebAudioAdapter class.
public WebAudioAdapter(IDevToolsSession session)Parameters
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }Property Value
Methods
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetRealtimeData(GetRealtimeDataCommandSettings, CancellationToken, int?, bool)
getRealtimeData
public Task<GetRealtimeDataCommandResponse> GetRealtimeData(GetRealtimeDataCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetRealtimeDataCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
AudioListenerCreated
audioListenerCreated
public event EventHandler<AudioListenerCreatedEventArgs>? AudioListenerCreatedEvent Type
AudioListenerWillBeDestroyed
audioListenerWillBeDestroyed
public event EventHandler<AudioListenerWillBeDestroyedEventArgs>? AudioListenerWillBeDestroyedEvent Type
AudioNodeCreated
audioNodeCreated
public event EventHandler<AudioNodeCreatedEventArgs>? AudioNodeCreatedEvent Type
AudioNodeWillBeDestroyed
audioNodeWillBeDestroyed
public event EventHandler<AudioNodeWillBeDestroyedEventArgs>? AudioNodeWillBeDestroyedEvent Type
AudioParamCreated
audioParamCreated
public event EventHandler<AudioParamCreatedEventArgs>? AudioParamCreatedEvent Type
AudioParamWillBeDestroyed
audioParamWillBeDestroyed
public event EventHandler<AudioParamWillBeDestroyedEventArgs>? AudioParamWillBeDestroyedEvent Type
ContextChanged
contextChanged
public event EventHandler<ContextChangedEventArgs>? ContextChangedEvent Type
ContextCreated
contextCreated
public event EventHandler<ContextCreatedEventArgs>? ContextCreatedEvent Type
ContextWillBeDestroyed
contextWillBeDestroyed
public event EventHandler<ContextWillBeDestroyedEventArgs>? ContextWillBeDestroyedEvent Type
NodeParamConnected
nodeParamConnected
public event EventHandler<NodeParamConnectedEventArgs>? NodeParamConnectedEvent Type
NodeParamDisconnected
nodeParamDisconnected
public event EventHandler<NodeParamDisconnectedEventArgs>? NodeParamDisconnectedEvent Type
NodesConnected
nodesConnected
public event EventHandler<NodesConnectedEventArgs>? NodesConnectedEvent Type
NodesDisconnected
nodesDisconnected
public event EventHandler<NodesDisconnectedEventArgs>? NodesDisconnected