Package Torello.Browser
Class WebAudio.BaseAudioContext
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.WebAudio.BaseAudioContext
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- WebAudio
public static class WebAudio.BaseAudioContext extends BaseType implements java.io.Serializable
Protocol object for BaseAudioContext- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/WebAudio.java
- Open New Browser-Tab: Torello/Browser/WebAudio.java
File Size: 6,032 Bytes Line Count: 132 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Number
callbackBufferSize
Platform-dependent callback buffer size.String
contextId
[No Description Provided by Google]
String
contextState
[No Description Provided by Google]
String
contextType
[No Description Provided by Google]
Number
maxOutputChannelCount
Number of output channels supported by audio hardware in use.WebAudio.ContextRealtimeData
realtimeData
[No Description Provided by Google]
OPTIONALNumber
sampleRate
Context sample rate.
-
Constructor Summary
Constructors Constructor Description BaseAudioContext(String contextId, String contextType, String contextState, WebAudio.ContextRealtimeData realtimeData, Number callbackBufferSize, Number maxOutputChannelCount, Number sampleRate)
ConstructorBaseAudioContext(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
contextId
public final java.lang.String contextId
[No Description Provided by Google]
-
contextType
public final java.lang.String contextType
[No Description Provided by Google]
-
contextState
public final java.lang.String contextState
[No Description Provided by Google]
-
realtimeData
public final WebAudio.ContextRealtimeData realtimeData
[No Description Provided by Google]
OPTIONAL
-
callbackBufferSize
public final java.lang.Number callbackBufferSize
Platform-dependent callback buffer size.
-
maxOutputChannelCount
public final java.lang.Number maxOutputChannelCount
Number of output channels supported by audio hardware in use.
-
sampleRate
public final java.lang.Number sampleRate
Context sample rate.
-
-
Constructor Detail
-
BaseAudioContext
public BaseAudioContext(java.lang.String contextId, java.lang.String contextType, java.lang.String contextState, WebAudio.ContextRealtimeData realtimeData, java.lang.Number callbackBufferSize, java.lang.Number maxOutputChannelCount, java.lang.Number sampleRate)
Constructor- Parameters:
contextId
- -contextType
- -contextState
- -realtimeData
- -
OPTIONALcallbackBufferSize
- Platform-dependent callback buffer size.maxOutputChannelCount
- Number of output channels supported by audio hardware in use.sampleRate
- Context sample rate.
-
BaseAudioContext
public BaseAudioContext(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'BaseAudioContext'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; BaseAudioContext o = (BaseAudioContext) other; return Objects.equals(this.contextId, o.contextId) && Objects.equals(this.contextType, o.contextType) && Objects.equals(this.contextState, o.contextState) && Objects.equals(this.realtimeData, o.realtimeData) && Objects.equals(this.callbackBufferSize, o.callbackBufferSize) && Objects.equals(this.maxOutputChannelCount, o.maxOutputChannelCount) && Objects.equals(this.sampleRate, o.sampleRate);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.contextId) + Objects.hashCode(this.contextType) + Objects.hashCode(this.contextState) + this.realtimeData.hashCode() + Objects.hashCode(this.callbackBufferSize) + Objects.hashCode(this.maxOutputChannelCount) + Objects.hashCode(this.sampleRate);
-
-