Skip to content

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.

ReturnsSignatureSummary
short[]stereo(short[] samples, int channels) staticReturns the samples mixed down to interleaved stereo, with the usual weights of the center, back and surround channels, scaled so that no channel clips.

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

Report a problem with this page