Class AudioContextImpl

java.lang.Object
org.loboevolution.html.js.audio.AudioContextImpl
All Implemented Interfaces:
AudioContext, BaseAudioContext

public class AudioContextImpl extends Object implements AudioContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The close() method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.
    createBuffer(int numberOfChannels, int length, float sampleRate)
    An AudioBuffer configured based on the specified options.
    The baseLatency read-only property of the AudioContext interface returns a double that represents the number of seconds of processing latency incurred by the AudioContext passing an audio buffer from the AudioDestinationNode — i.e. the end of the audio graph — into the host system's audio subsystem ready for playing.
    The outputLatency read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.
    void
    The resume() method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended.
    void
    The suspend() method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait