Package Torello.Browser
Class WebAudio.ContextRealtimeData
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.WebAudio.ContextRealtimeData
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- WebAudio
public static class WebAudio.ContextRealtimeData extends BaseType implements java.io.Serializable
Fields in AudioContext that change in real-time.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/WebAudio.java
- Open New Browser-Tab: Torello/Browser/WebAudio.java
File Size: 4,420 Bytes Line Count: 98 '\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
callbackIntervalMean
A running mean of callback interval.Number
callbackIntervalVariance
A running variance of callback interval.Number
currentTime
The current context time in second in BaseAudioContext.Number
renderCapacity
The time spent on rendering graph divided by render quantum duration, and multiplied by 100.
-
Constructor Summary
Constructors Constructor Description ContextRealtimeData(Number currentTime, Number renderCapacity, Number callbackIntervalMean, Number callbackIntervalVariance)
ConstructorContextRealtimeData(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
-
currentTime
public final java.lang.Number currentTime
The current context time in second in BaseAudioContext.
-
renderCapacity
public final java.lang.Number renderCapacity
The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur.
-
callbackIntervalMean
public final java.lang.Number callbackIntervalMean
A running mean of callback interval.
-
callbackIntervalVariance
public final java.lang.Number callbackIntervalVariance
A running variance of callback interval.
-
-
Constructor Detail
-
ContextRealtimeData
public ContextRealtimeData(java.lang.Number currentTime, java.lang.Number renderCapacity, java.lang.Number callbackIntervalMean, java.lang.Number callbackIntervalVariance)
Constructor- Parameters:
currentTime
- The current context time in second in BaseAudioContext.renderCapacity
- The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur.callbackIntervalMean
- A running mean of callback interval.callbackIntervalVariance
- A running variance of callback interval.
-
ContextRealtimeData
public ContextRealtimeData(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'ContextRealtimeData'
.
-
-
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; ContextRealtimeData o = (ContextRealtimeData) other; return Objects.equals(this.currentTime, o.currentTime) && Objects.equals(this.renderCapacity, o.renderCapacity) && Objects.equals(this.callbackIntervalMean, o.callbackIntervalMean) && Objects.equals(this.callbackIntervalVariance, o.callbackIntervalVariance);
-
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.currentTime) + Objects.hashCode(this.renderCapacity) + Objects.hashCode(this.callbackIntervalMean) + Objects.hashCode(this.callbackIntervalVariance);
-
-