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
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
session
is 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
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetRealtimeData(GetRealtimeDataCommandSettings, CancellationToken, int?, bool)
getRealtimeData
public Task<GetRealtimeDataCommandResponse> GetRealtimeData(GetRealtimeDataCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetRealtimeDataCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
AudioListenerCreated
audioListenerCreated
public event EventHandler<AudioListenerCreatedEventArgs>? AudioListenerCreated
Event Type
AudioListenerWillBeDestroyed
audioListenerWillBeDestroyed
public event EventHandler<AudioListenerWillBeDestroyedEventArgs>? AudioListenerWillBeDestroyed
Event Type
AudioNodeCreated
audioNodeCreated
public event EventHandler<AudioNodeCreatedEventArgs>? AudioNodeCreated
Event Type
AudioNodeWillBeDestroyed
audioNodeWillBeDestroyed
public event EventHandler<AudioNodeWillBeDestroyedEventArgs>? AudioNodeWillBeDestroyed
Event Type
AudioParamCreated
audioParamCreated
public event EventHandler<AudioParamCreatedEventArgs>? AudioParamCreated
Event Type
AudioParamWillBeDestroyed
audioParamWillBeDestroyed
public event EventHandler<AudioParamWillBeDestroyedEventArgs>? AudioParamWillBeDestroyed
Event Type
ContextChanged
contextChanged
public event EventHandler<ContextChangedEventArgs>? ContextChanged
Event Type
ContextCreated
contextCreated
public event EventHandler<ContextCreatedEventArgs>? ContextCreated
Event Type
ContextWillBeDestroyed
contextWillBeDestroyed
public event EventHandler<ContextWillBeDestroyedEventArgs>? ContextWillBeDestroyed
Event Type
NodeParamConnected
nodeParamConnected
public event EventHandler<NodeParamConnectedEventArgs>? NodeParamConnected
Event Type
NodeParamDisconnected
nodeParamDisconnected
public event EventHandler<NodeParamDisconnectedEventArgs>? NodeParamDisconnected
Event Type
NodesConnected
nodesConnected
public event EventHandler<NodesConnectedEventArgs>? NodesConnected
Event Type
NodesDisconnected
nodesDisconnected
public event EventHandler<NodesDisconnectedEventArgs>? NodesDisconnected