SnapshotAudioSource
final class SnapshotAudioSource
Implements: IAudioSource
Package: dev.joid.test.snapshot · Module: tool-testkit · Source: SnapshotAudioSource.java
An audio source that plays nothing, so that snapshot tests need no sound device.
Description
Section titled “Description”SnapshotRunner registers an audio bridge that creates them.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| SnapshotAudioSource() | Creates a simulated audio source. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | delete() | Does nothing. |
void | play() | Does nothing. |
void | stop() | Does nothing. |
void | pause() | Does nothing. |
void | gain(float gain) | Does nothing. |
void | group(Object group) | Does nothing. |
void | write(short[] samples) | Drops the samples. |
boolean | isPlaying() | Returns false. |
int | getBufferedSamples() | Returns 0. |
Creation details
Section titled “Creation details”SnapshotAudioSource
Section titled “SnapshotAudioSource”SnapshotAudioSource()
Creates a simulated audio source.
Method details
Section titled “Method details”delete
Section titled “delete”void delete()
Does nothing.
void play()
Does nothing.
void stop()
Does nothing.
void pause()
Does nothing.
void gain(float gain)
Does nothing.
void group(Object group)
Does nothing.
void write(short[] samples)
Drops the samples.
isPlaying
Section titled “isPlaying”boolean isPlaying()
Returns false.
getBufferedSamples
Section titled “getBufferedSamples”int getBufferedSamples()
Returns 0.
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
