Skip to content

IAudioBridge

interface IAudioBridge
Extends: IBridge
Known subtypes: AlAudioBridge
Package: dev.joid.lib.bridge.audio · Module: core · Source: IAudioBridge.java

The bridge that creates the audio sources on which JOID plays the sound of videos.

The backend registers it in BridgeHandler.AUDIO, unless it is built with audio(false); without it, videos play without sound. The video player calls it on the render thread. Create the bridge plays the sound through the OpenAL context of the host, at the volume that the host gives each group.

ReturnsSignatureSummary
IAudioSourcecreateSource(int sampleRate, int channels) abstractReturns a stopped source that plays interleaved 16-bit samples at that sample rate, in hertz, with that number of channels.

IAudioSource createSource(int sampleRate, int channels) abstract

Returns a stopped source that plays interleaved 16-bit samples at that sample rate, in hertz, with that number of channels.


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