Class ContextRealtimeData


  • public class ContextRealtimeData
    extends java.lang.Object
    Fields in AudioContext that change in real-time.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextRealtimeData​(java.lang.Number currentTime, java.lang.Number renderCapacity, java.lang.Number callbackIntervalMean, java.lang.Number callbackIntervalVariance)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Number getCallbackIntervalMean()
      A running mean of callback interval.
      java.lang.Number getCallbackIntervalVariance()
      A running variance of callback interval.
      java.lang.Number getCurrentTime()
      The current context time in second in BaseAudioContext.
      java.lang.Number getRenderCapacity()
      The time spent on rendering graph divided by render qunatum duration, and multiplied by 100.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContextRealtimeData

        public ContextRealtimeData​(java.lang.Number currentTime,
                                   java.lang.Number renderCapacity,
                                   java.lang.Number callbackIntervalMean,
                                   java.lang.Number callbackIntervalVariance)
    • Method Detail

      • getCurrentTime

        public java.lang.Number getCurrentTime()
        The current context time in second in BaseAudioContext.
      • getRenderCapacity

        public java.lang.Number getRenderCapacity()
        The time spent on rendering graph divided by render qunatum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur.
      • getCallbackIntervalMean

        public java.lang.Number getCallbackIntervalMean()
        A running mean of callback interval.
      • getCallbackIntervalVariance

        public java.lang.Number getCallbackIntervalVariance()
        A running variance of callback interval.