AudioGain
interface AudioGain
Package: dev.joid.base.openal · Module: base-openal · Source: AudioGain.java
A function that maps the gain and the audio group of a source to the volume sent to OpenAL.
Description
Section titled “Description”A host returns the gain multiplied by its own volume for the group.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
float | apply(float gain, Object group) abstract | Returns the volume to send to OpenAL for that gain and that audio group, which is null for a video without group. |
Method details
Section titled “Method details”float apply(float gain, Object group) abstract
Returns the volume to send to OpenAL for that gain and that audio group, which is null for a video without group.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
