Skip to content

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.

A host returns the gain multiplied by its own volume for the group.

ReturnsSignatureSummary
floatapply(float gain, Object group) abstractReturns the volume to send to OpenAL for that gain and that audio group, which is null for a video without group.

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

Report a problem with this page