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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Method details
Section titled “Method details”createSource
Section titled “createSource”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
