AudioDownmix
final class AudioDownmix
Package: dev.joid.lib.bridge.audio · Module: core · Source: AudioDownmix.java
Mixes interleaved audio of 3 to 8 channels down to stereo, for an audio API that plays two channels at most.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
short[] | stereo(short[] samples, int channels) static | Returns the samples mixed down to interleaved stereo, with the usual weights of the center, back and surround channels, scaled so that no channel clips. |
Method details
Section titled “Method details”stereo
Section titled “stereo”short[] stereo(short[] samples, int channels) static
Returns the samples mixed down to interleaved stereo, with the usual weights of the center, back and surround channels, scaled so that no channel clips. Returns the same array for mono and stereo; channels after the eighth are dropped.
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
