Package org.loboevolution.audio
Interface AudioContext
- All Superinterfaces:
BaseAudioContext
- All Known Implementing Classes:
AudioContextImpl
The AudioContext interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
The close() method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.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
resume()
The resume() method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended.void
suspend()
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 interface org.loboevolution.audio.BaseAudioContext
createBuffer
-
Method Details
-
getBaseLatency
Double getBaseLatency()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.- See Also:
-
getOutputLatency
Double getOutputLatency()The outputLatency read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.- See Also:
-
close
void close()The close() method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.- See Also:
-
resume
void resume()The resume() method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended.- See Also:
-
suspend
void suspend()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.- See Also:
-