Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- alignment() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Desired byte-alignment for data of this format.
- Alsa - Class in net.avadeaux.klipspringer.alsa
-
Base class that has static members for accessing ALSA devices, as well as being a common base class for
Alsa.PlayerandAlsa.Tunerclasses used for sending to or receiving from specific devices. - Alsa.Player - Class in net.avadeaux.klipspringer.alsa
-
Class for sending PCM data to an ALSA device.
- Alsa.Tuner - Class in net.avadeaux.klipspringer.alsa
-
Class for receiving PCM data from an ALSA device.
- alsaSupported() - Static method in class net.avadeaux.klipspringer.codec.Library
-
Checks if set up with a library compiled with support for direct access to ALSA devices.
- AudioDecoder - Interface in net.avadeaux.klipspringer.codec
-
Interface for streamed audio decoding.
- AudioDecoder.PictureTarget - Interface in net.avadeaux.klipspringer.codec
-
Interface that can be implemented by decoder in order to receive pictures embedded in the decoded file metadata.
- AudioDecoder.Target - Interface in net.avadeaux.klipspringer.codec
-
Interface for the destination of an audio decoder.
- AudioInputStreamDecoder - Class in net.avadeaux.klipspringer.codec
-
Audio decoder that reads from an AudioInputStream.
- AudioInputStreamDecoder(AudioInputStream, AudioDecoder.Target) - Constructor for class net.avadeaux.klipspringer.codec.AudioInputStreamDecoder
-
Sets up for sending data from the given AudioInputStream to the given target.
- AudioStream - Interface in net.avadeaux.klipspringer.codec
-
Interface for streaming to a remote player.
- AudioStream.Factory - Interface in net.avadeaux.klipspringer.codec
-
AudioStream factory interface.
- available() - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
B
- bigend() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Is big-endian, alias for
AudioFormat.isBigEndian(). - bips() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Bits per sample, alias for
AudioFormat.getSampleSizeInBits(). - BIT_LAYOUT - Static variable in class net.avadeaux.klipspringer.codec.FlacStream
-
The bit layout for PCM data sent to a FLAC stream.
- BIT_LAYOUT - Static variable in class net.avadeaux.klipspringer.codec.LameStream
-
The bit layout for PCM data sent to an MP3 stream.
- BIT_LAYOUT - Static variable in class net.avadeaux.klipspringer.codec.VorbisStream
-
The bit layout for PCM data sent to a Vorbis stream.
- bufferedFrames() - Method in class net.avadeaux.klipspringer.alsa.Alsa.Player
- bufferedFrames() - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Gets an estimate of how many frames are currently buffered, waiting to be played.
- bufferedFrames() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
- byps() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Bytes per sample, ceiling of
PcmFormat.bips()/8. - byteBuffer() - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Gets the underlying byte buffer.
- ByteTransfer - Class in net.avadeaux.klipspringer.codec
-
Utility methods for facilitating reading and writing when the reader/writer requires one specific buffer type and the data is requested/provided in another.
- ByteTransfer.ArrayReader - Interface in net.avadeaux.klipspringer.codec
-
Interface for reading data to byte array.
- ByteTransfer.ArrayWriter - Interface in net.avadeaux.klipspringer.codec
-
Interface for writing data from byte array.
C
- canPause() - Method in class net.avadeaux.klipspringer.alsa.Alsa
-
Checks if
Alsa.Playersupports pausing. - canPause() - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Checks if
Device.Player.pause()is supported. - canPause() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
-
Returns true.
- channels() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Number of channels, alias for
AudioFormat.getChannels(). - close() - Method in class net.avadeaux.klipspringer.alsa.Alsa
-
See
Closeable.close(). - close() - Method in interface net.avadeaux.klipspringer.codec.AudioDecoder
-
See
Closeable.close(). - close() - Method in class net.avadeaux.klipspringer.codec.AudioInputStreamDecoder
- close() - Method in interface net.avadeaux.klipspringer.codec.Device.Tuner
-
See
Closeable.close(). - close() - Method in class net.avadeaux.klipspringer.codec.ExternalDecoder
- close() - Method in class net.avadeaux.klipspringer.codec.ExternalEncodedStream
- close() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
- close() - Method in class net.avadeaux.klipspringer.codec.LineTuner
- close() - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
See
Closeable.close(). - close() - Method in class net.avadeaux.klipspringer.codec.PcmChannelDecoder
- close() - Method in class net.avadeaux.klipspringer.codec.PcmChannelEncoder
- close() - Method in interface net.avadeaux.klipspringer.codec.PcmWriter
-
See
Closeable.close(). - close() - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
-
Closes the stream, causing decoding to be aborted and the feeder thread to finish.
- CodeIOException - Exception Class in net.avadeaux.klipspringer.codec
-
Exception with an error code.
- CodeIOException(int, String) - Constructor for exception class net.avadeaux.klipspringer.codec.CodeIOException
-
Constructs exception with error code and message.
D
- decodeAll(long) - Method in interface net.avadeaux.klipspringer.codec.AudioDecoder
-
Sends audio data to the target, one block at the time, starting from the given sample frame (zero to start at the beginning).
- decodeAll(long) - Method in class net.avadeaux.klipspringer.codec.AudioInputStreamDecoder
- decodeAll(long) - Method in class net.avadeaux.klipspringer.codec.ExternalDecoder
- decodeAll(long) - Method in class net.avadeaux.klipspringer.codec.PcmChannelDecoder
- decodeMetadata() - Method in interface net.avadeaux.klipspringer.codec.AudioDecoder
-
Decodes metadata and sends it to the target, without writing any blocks.
- decodeMetadata() - Method in class net.avadeaux.klipspringer.codec.AudioInputStreamDecoder
- decodeMetadata() - Method in class net.avadeaux.klipspringer.codec.ExternalDecoder
- decodeMetadata() - Method in class net.avadeaux.klipspringer.codec.PcmChannelDecoder
- DecoderAudioInputStream - Class in net.avadeaux.klipspringer.codec.spi
-
Wrapper for
AudioDecoderto make it readable as anAudioInputStream - Device - Interface in net.avadeaux.klipspringer.codec
-
Representation of an audio device.
- Device.BitLayout - Enum Class in net.avadeaux.klipspringer.codec
-
Specification for where bits are placed when the bytes allocated for a sample are not completely filled by the sample bits.
- Device.Player - Interface in net.avadeaux.klipspringer.codec
-
PCM writer with optional methods to control real-time playing where applicanle.
- Device.Player.Factory - Interface in net.avadeaux.klipspringer.codec
-
Player factory interface.
- Device.Tuner - Interface in net.avadeaux.klipspringer.codec
-
PCM reader for input (from microphone, ADC, or whatever audio input is available).
- Device.Tuner.Factory - Interface in net.avadeaux.klipspringer.codec
-
Tuner factory interface.
- devices - Static variable in class net.avadeaux.klipspringer.alsa.Alsa.Player
-
Map from available output device names to the device objects.
- devices - Static variable in class net.avadeaux.klipspringer.alsa.Alsa.Tuner
-
Map from available input device names to the device objects.
- drain() - Method in class net.avadeaux.klipspringer.alsa.Alsa
-
Waits for
Alsa.Playerto send on any data it has buffered up and closes it. - drain() - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Waits for player to send on any data it has buffered up and closes it.
- drain() - Method in class net.avadeaux.klipspringer.codec.ExternalEncodedStream
-
Forces the encoder to write any retained audio, and closes the stream.
- drain() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
E
- errorCode() - Method in exception class net.avadeaux.klipspringer.codec.CodeIOException
-
Gets the error code associated with the exception.
- ExternalDecoder - Class in net.avadeaux.klipspringer.codec
-
Common base class for decoders that invoke native libraries.
- ExternalEncodedStream - Class in net.avadeaux.klipspringer.codec
-
Common base class for writers that use external libraries for encoding data to a channel.
F
- fileEncoder(String, PcmFormat, float) - Static method in class net.avadeaux.klipspringer.codec.VorbisStream
-
Gets a player that encodes to a file rather than a stream.
- fileEncoder(String, PcmFormat, int) - Static method in class net.avadeaux.klipspringer.codec.FlacStream
-
Gets a player that encodes to a file rather than a stream.
- fileEncoder(String, PcmFormat, int, int) - Static method in class net.avadeaux.klipspringer.codec.LameStream
-
Gets a player that encodes to a file rather than a stream.
- FlacAudioFileReader - Class in net.avadeaux.klipspringer.codec.spi
-
Plugin to be used as audio service provider.
- FlacAudioFileReader() - Constructor for class net.avadeaux.klipspringer.codec.spi.FlacAudioFileReader
-
Constructor.
- FlacDecoder - Class in net.avadeaux.klipspringer.codec
-
FLAC file decoder that interfaces to FLAC library.
- FlacDecoder(String, AudioDecoder.Target) - Constructor for class net.avadeaux.klipspringer.codec.FlacDecoder
-
Initiates decoder, including opening the file.
- FlacStream - Class in net.avadeaux.klipspringer.codec
-
Audio stream that sends FLAC encoded data to a channel.
- FlacStream(PcmFormat, boolean, int, int, double, double, int, WritableByteChannel, Executor, double) - Constructor for class net.avadeaux.klipspringer.codec.FlacStream
-
Creates a FLAC stream with the given specifications and destination channel.
- flacSupported() - Static method in class net.avadeaux.klipspringer.codec.Library
-
Checks if set up with a library compiled with FLAC support.
- format() - Method in class net.avadeaux.klipspringer.alsa.Alsa
-
Gets the audio format of
Alsa.PlayerorAlsa.Tuner. - format() - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Gets the audio expected by the player.
- format() - Method in interface net.avadeaux.klipspringer.codec.Device.Tuner
-
Gets the audio format data read through the tuner.
- format() - Method in class net.avadeaux.klipspringer.codec.ExternalEncodedStream
-
Gets the stream audio format.
- format() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
- format() - Method in class net.avadeaux.klipspringer.codec.LineTuner
- format() - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Gets the output format, used in writing to the wrapped buffer.
- fs() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Frame size, alias for
AudioFormat.getFrameSize().
G
- getAudioFileFormat(File) - Method in class net.avadeaux.klipspringer.codec.spi.KlipspringerAudioFileReader
-
Decodes format of file.
- getAudioFileFormat(InputStream) - Method in class net.avadeaux.klipspringer.codec.spi.KlipspringerAudioFileReader
-
Throws
UnsupportedAudioFileException, since stream decoding is not supported. - getAudioFileFormat(URL) - Method in class net.avadeaux.klipspringer.codec.spi.KlipspringerAudioFileReader
-
Decodes format of file if given a
file://URL, otherwise throwsUnsupportedAudioFileException - getAudioInputStream(File) - Method in class net.avadeaux.klipspringer.codec.spi.KlipspringerAudioFileReader
-
Decodes file.
- getAudioInputStream(InputStream) - Method in class net.avadeaux.klipspringer.codec.spi.KlipspringerAudioFileReader
-
Throws
UnsupportedAudioFileException, since stream decoding is not supported. - getAudioInputStream(URL) - Method in class net.avadeaux.klipspringer.codec.spi.KlipspringerAudioFileReader
-
Decodes file if given a
file://URL, otherwise throwsUnsupportedAudioFileException. - getSample() - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Reads a sample as a signed integer at the current position, and advances position.
- getSample(int) - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Reads a sample as a signed integer given the position of its first byte.
I
- init() - Static method in class net.avadeaux.klipspringer.codec.Library
-
Call to make sure that static external resources are properly initialized.
K
- KlipspringerAudioFileReader - Class in net.avadeaux.klipspringer.codec.spi
-
Base class for reading input file formats supported by Klipspringer.
- Klipspringer codec library - Search tag in Overview
- Section
L
- LameStream - Class in net.avadeaux.klipspringer.codec
-
Audio stream that sends MP3 encoded data to a channel.
- LameStream(PcmFormat, int, int, int, double, double, WritableByteChannel, Executor, double) - Constructor for class net.avadeaux.klipspringer.codec.LameStream
-
Creates a FLAC stream with the given specifications and destination channel.
- lameSupported() - Static method in class net.avadeaux.klipspringer.codec.Library
-
Checks if set up with a library compiled with LAME MP3 encoding support.
- layout() - Method in class net.avadeaux.klipspringer.alsa.Alsa
-
Gets the bit layout of
Alsa.Player. - layout() - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Gets the bit layout expected by the player.
- layout() - Method in class net.avadeaux.klipspringer.codec.FlacStream
- layout() - Method in class net.avadeaux.klipspringer.codec.LameStream
- layout() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
- layout() - Method in class net.avadeaux.klipspringer.codec.VorbisStream
-
The bit layout for PCM data sent to a Vorbis stream.
- layout(PcmFormat) - Method in interface net.avadeaux.klipspringer.codec.Device
-
Gets the bit layout expected by players with the given format associated with this device.
- layout(PcmFormat) - Method in interface net.avadeaux.klipspringer.codec.Device.Player.Factory
-
Gets the bit layout expected by players from this factory with the given format.
- Library - Class in net.avadeaux.klipspringer.codec
-
Static initialization of common external resources, with methods to provide information about supported features.
- Library() - Constructor for class net.avadeaux.klipspringer.codec.Library
- LinePlayer - Class in net.avadeaux.klipspringer.codec
-
Audio output adapter for writing to a
SourceDataLine. - LinePlayer(SourceDataLine, boolean) - Constructor for class net.avadeaux.klipspringer.codec.LinePlayer
-
Constructs a player for the given line.
- LineTuner - Class in net.avadeaux.klipspringer.codec
-
Audio input adapter for reading from a
TargetDataLine. - LineTuner(TargetDataLine) - Constructor for class net.avadeaux.klipspringer.codec.LineTuner
-
Constructs a tuner (input) for the given line.
- LSB - Enum constant in enum class net.avadeaux.klipspringer.codec.Device.BitLayout
-
The lower bits are significant, and insignificant bits are set to zero, This is the default, used where no bit layout is specified.
- LSBX - Enum constant in enum class net.avadeaux.klipspringer.codec.Device.BitLayout
-
The lower bits are significant, and higher bit equal to the sign, the leftmost significant bits.
M
- mark(int) - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
-
Remembers the current position for a later reset.
- markSupported() - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
-
Returns true.
- matchesQuality(PcmFormat) - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Checks if formats match in sample rate, bits per channel, and number of channels.
- MAX_FS - Static variable in class net.avadeaux.klipspringer.codec.PcmFormat
-
Maximum accepted frame size.
- metadata(PcmFormat, long) - Method in interface net.avadeaux.klipspringer.codec.AudioDecoder.Target
-
Makes the writer ready to recieve data in the given format, and gives the intended full length of the input if available, otherwise supplying
AudioSystem.NOT_SPECIFIED. - monomix(int, int) - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Mixes the samples in a segment of the buffer so that all channels get the same value (the arithmetic mean of the original values.
- MSB - Enum constant in enum class net.avadeaux.klipspringer.codec.Device.BitLayout
-
The higher bits are significant, and insignificant bits are zero.
N
- name() - Method in interface net.avadeaux.klipspringer.codec.Device
-
Gets the identifying name of the device.
- net.avadeaux.klipspringer.alsa - package net.avadeaux.klipspringer.alsa
-
Package for accessing ALSA PCM audio functionality directly via the Java Native Interface.
- net.avadeaux.klipspringer.codec - package net.avadeaux.klipspringer.codec
-
Classes for decoding the FLAC and Ogg Vorbis audio format, and encoding FLAC, Ogg Vorbis, or MP3 format.
- net.avadeaux.klipspringer.codec.spi - package net.avadeaux.klipspringer.codec.spi
-
Classes for providing FLAC and Ogg Vorbis file decoding capability via the Java service provider interface.
O
- of(InputStream) - Static method in interface net.avadeaux.klipspringer.codec.ByteTransfer.ArrayReader
-
Wraps an input stream as an array reader.
- of(OutputStream) - Static method in interface net.avadeaux.klipspringer.codec.ByteTransfer.ArrayWriter
-
Wraps an output stream as an array writer.
- of(ByteBuffer, PcmFormat, Device.BitLayout) - Static method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Constructor that wraps a byte buffer as a PCM buffer for the given output format and layout.
- of(AudioFormat) - Static method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Gets a PCM format specified by standard
AudioFormat - of(AudioFormat, int) - Static method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Gets a PCM format specified by standard
AudioFormat, with specified sample rate in case it is unspecified in the given format. - of(SourceDataLine) - Static method in interface net.avadeaux.klipspringer.codec.ByteTransfer.ArrayWriter
-
Wraps an audio data line as an array writer.
- of(TargetDataLine) - Static method in interface net.avadeaux.klipspringer.codec.ByteTransfer.ArrayReader
-
Wraps an audio data line as an array reader.
- ofRaw(ReadableByteChannel, PcmFormat, long, AudioDecoder.Target) - Static method in class net.avadeaux.klipspringer.codec.PcmChannelDecoder
-
Factory method that gets a decoder for reading raw PCM format data.
- ofRaw(PcmFormat, WritableByteChannel, PcmFormat) - Static method in class net.avadeaux.klipspringer.codec.PcmChannelEncoder
-
Factory method that gets an encoder for producing raw PCM format output.
- ofWav(SeekableByteChannel, AudioDecoder.Target) - Static method in class net.avadeaux.klipspringer.codec.PcmChannelDecoder
-
Factory method that gets a decoder for reading PCM format data with a WAV header.
- ofWav(PcmFormat, WritableByteChannel, long) - Static method in class net.avadeaux.klipspringer.codec.PcmChannelEncoder
-
Factory method that gets an encoder for producing PCM format output with a WAV header.
- oggSupported - Static variable in class net.avadeaux.klipspringer.codec.FlacStream
-
True if OGG FLAC is supported.
- open(PcmFormat) - Method in interface net.avadeaux.klipspringer.codec.AudioStream.Factory
- open(PcmFormat) - Method in interface net.avadeaux.klipspringer.codec.Device.Player.Factory
-
Creates a player for the format, or throws exception if not possible.
- open(PcmFormat) - Method in interface net.avadeaux.klipspringer.codec.Device.Tuner.Factory
-
Creates a tuner for the format, or throws exception if not possible.
- OpusAudioFileReader - Class in net.avadeaux.klipspringer.codec.spi
-
Plugin to be used as audio service provider.
- OpusAudioFileReader() - Constructor for class net.avadeaux.klipspringer.codec.spi.OpusAudioFileReader
-
Constructor.
- OpusDecoder - Class in net.avadeaux.klipspringer.codec
-
Opus file decoder that interfaces to Opus library.
- OpusDecoder(String, AudioDecoder.Target) - Constructor for class net.avadeaux.klipspringer.codec.OpusDecoder
-
Initiates decoder, including opening the file.
- opusSupported() - Static method in class net.avadeaux.klipspringer.codec.Library
-
Checks if set up with a library compiled with Opus support.
- order() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
ByteOrderalternative toPcmFormat.bigend().
P
- pause() - Method in class net.avadeaux.klipspringer.alsa.Alsa
-
Pauses
Alsa.Player(if itAlsa.canPause()). - pause() - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Pauses, if this optional operation is supported, audio playback at the destination.
- pause() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
- PcmBuffer - Class in net.avadeaux.klipspringer.codec
-
Intermediary for passing PCM data to a writer with matching sample rate, bit depth and number of channels, but whose coding may differ in signedness, endianness, or padding (see blog post about various formats).
- PcmChannelDecoder - Class in net.avadeaux.klipspringer.codec
-
Audio decoder that reads PCM data from a channel.
- PcmChannelEncoder - Class in net.avadeaux.klipspringer.codec
-
Channel for writing PCM data, with quality-compatible conversion.
- PcmChannelEncoder(PcmFormat, WritableByteChannel, PcmFormat, Device.BitLayout) - Constructor for class net.avadeaux.klipspringer.codec.PcmChannelEncoder
-
General constructor.
- PcmFormat - Class in net.avadeaux.klipspringer.codec
-
Audio format specification that extends
AudioFormatwith some convenience functions and restrictions. - PcmFormat(int, int, int) - Constructor for class net.avadeaux.klipspringer.codec.PcmFormat
-
Constructor that specifies sound quality and sets other parameters to standard values.
- PcmFormat(int, int, int, boolean, int, ByteOrder, int) - Constructor for class net.avadeaux.klipspringer.codec.PcmFormat
-
Constructor that specifies all fields.
- PcmFormat.Selector - Interface in net.avadeaux.klipspringer.codec
-
Interface for selecting a quality-compatible audio format.
- PcmReader - Interface in net.avadeaux.klipspringer.codec
-
Audio reading interface.
- PcmWriter - Interface in net.avadeaux.klipspringer.codec
-
Audio writing interface.
- picture(String, String, String, ByteBuffer) - Method in interface net.avadeaux.klipspringer.codec.AudioDecoder.PictureTarget
-
Handles picture data.
- playedMillis(long) - Method in interface net.avadeaux.klipspringer.codec.AudioStream
-
Callback by which the recipient can tell the writer how much of its received data it has finished playing.
- playedMillis(long) - Method in class net.avadeaux.klipspringer.codec.ExternalEncodedStream
- Player(Device, PcmFormat, double, int) - Constructor for class net.avadeaux.klipspringer.alsa.Alsa.Player
-
Creates a player to output PCM to the given device in the given format, specifying the size of the external buffer, and the number of recovery attempts in case of buffer underrun.
- printAvailableFormats(PrintStream) - Method in interface net.avadeaux.klipspringer.codec.Device
-
Writes a human-readable representation of available formats to the given stream.
- put(ByteBuffer, PcmFormat) - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Transfers data from a byte buffer into this buffer.
- putSample(int) - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Writes a signed integer sample value at the current position, and advances position.
- putSample(int, int) - Method in class net.avadeaux.klipspringer.codec.PcmBuffer
-
Writes a signed integer sample value given the position of its first byte.
Q
- quality() - Method in interface net.avadeaux.klipspringer.codec.AudioDecoder
-
Returns a string to indicate compression quality, or empty string for lossless formats (the default).
- quality() - Method in interface net.avadeaux.klipspringer.codec.AudioStream
-
Returns the output bitrate or other quality measure, or null (the default) for lossless.
- quality() - Method in class net.avadeaux.klipspringer.codec.LameStream
-
Gets the bitrate specified for this stream.
- quality() - Method in class net.avadeaux.klipspringer.codec.OpusDecoder
-
Returns a string to indicate that the file is Opus compressed.
- quality() - Method in class net.avadeaux.klipspringer.codec.VorbisDecoder
-
Returns a string to indicate that the file is Vorbis compressed.
- quality() - Method in class net.avadeaux.klipspringer.codec.VorbisStream
-
gets the VBR quality specified for this stream.
R
- rate() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Same value as
AudioFormat.getSampleRate()but cast to int. - read() - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
- read(byte[]) - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
- read(byte[], int, int) - Method in interface net.avadeaux.klipspringer.codec.ByteTransfer.ArrayReader
-
Reads up to the specified length of bytes from the input into the given byte array.
- read(byte[], int, int) - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
- read(ByteBuffer) - Method in class net.avadeaux.klipspringer.alsa.Alsa.Tuner
- read(ByteBuffer) - Method in class net.avadeaux.klipspringer.codec.LineTuner
- read(ByteBuffer) - Method in interface net.avadeaux.klipspringer.codec.PcmReader
-
Reads frames until buffer is full, input is exhausted, or the source is closed.
- read(ByteBuffer, ByteTransfer.ArrayReader, int) - Static method in class net.avadeaux.klipspringer.codec.ByteTransfer
-
Reads into destination buffer, if necessary via an intermediary nondirect byte buffer.
- readDirect(ByteBuffer, PcmReader, int) - Static method in class net.avadeaux.klipspringer.codec.ByteTransfer
-
Reads into the destination PCM byte buffer via an intermediary direct byte buffer.
- reset() - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
-
Resets the stream to the marked position, or to the beginning if mark() has not been called.
- reusable() - Method in interface net.avadeaux.klipspringer.codec.AudioDecoder
-
True if
AudioDecoder.decodeAll(long)can be called more than once, each time resetting the underlying input. - reusable() - Method in class net.avadeaux.klipspringer.codec.AudioInputStreamDecoder
-
Returns false, indicating that decodeAll can be called at most once.
- reusable() - Method in class net.avadeaux.klipspringer.codec.ExternalDecoder
-
Always returns true, indicating that decodeAll can be called more than once, each time resetting the underlying input.
- reusable() - Method in class net.avadeaux.klipspringer.codec.PcmChannelDecoder
-
Returns true if the underlying channel is seekable.
S
- selectFormat(AudioFormat) - Static method in class net.avadeaux.klipspringer.codec.FlacStream
-
Selects format suitable for FLAC streaming with the same semantics as
PcmFormat.Selector.selectFormat(AudioFormat). - selectFormat(AudioFormat) - Static method in class net.avadeaux.klipspringer.codec.LameStream
-
Selects format suitable for LAME streaming with the same semantics as
PcmFormat.Selector.selectFormat(AudioFormat). - selectFormat(AudioFormat) - Method in interface net.avadeaux.klipspringer.codec.PcmFormat.Selector
-
Gets a supported format that matches the parameter in quality (sample rate, bit depth, and number of channels).
- selectFormat(AudioFormat) - Static method in class net.avadeaux.klipspringer.codec.VorbisStream
-
Selects format suitable for Vorbis streaming with the same semantics as
PcmFormat.Selector.selectFormat(AudioFormat). - setThreadFactory(ThreadFactory) - Static method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
-
Sets global thread factory for feeder threads, returning the previous factory.
- signed() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Boolean alternative to
AudioFormat.getEncoding(). - significantBips() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Significant bits per sample.
- skip(long) - Method in class net.avadeaux.klipspringer.codec.spi.DecoderAudioInputStream
-
Skips ahead the given number of bytes in the stream.
- ss() - Method in class net.avadeaux.klipspringer.codec.PcmFormat
-
Number of bytes allocated per sample, fs divided by channels.
- streaming() - Method in interface net.avadeaux.klipspringer.codec.AudioStream
-
Checks if the stream recipient still appears to be actively processing audio data from the stream, which may continue after the stream is closed.
- streaming() - Method in class net.avadeaux.klipspringer.codec.ExternalEncodedStream
-
Checks if the recipient appears to still be processing data.
T
- toString() - Method in interface net.avadeaux.klipspringer.codec.Device
-
Gets a descriptive string of the device, which includes the
Device.name(). - Tuner(Device, PcmFormat, double, int) - Constructor for class net.avadeaux.klipspringer.alsa.Alsa.Tuner
-
Creates a tuner to input PCM from the given device in the given format, specifying the size of the external buffer, and the number of recovery attempts in case of buffer overrun.
U
- unpause() - Method in class net.avadeaux.klipspringer.alsa.Alsa
-
Takes a paused
Alsa.Playerinto playing mode. - unpause() - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Resumes paused audio playback at the destination.
- unpause() - Method in class net.avadeaux.klipspringer.codec.LinePlayer
- UnsupportedFormatException - Exception Class in net.avadeaux.klipspringer.codec
-
Exception thrown by a resource that does not support a requested format.
- UnsupportedFormatException(String) - Constructor for exception class net.avadeaux.klipspringer.codec.UnsupportedFormatException
-
Specifies exception by message.
- UnsupportedFormatException(Throwable) - Constructor for exception class net.avadeaux.klipspringer.codec.UnsupportedFormatException
-
Specifies exception by cause.
V
- valueOf(String) - Static method in enum class net.avadeaux.klipspringer.codec.Device.BitLayout
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.avadeaux.klipspringer.codec.Device.BitLayout
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Static method in class net.avadeaux.klipspringer.codec.Library
-
Gets Klipspringer version string.
- VorbisAudioFileReader - Class in net.avadeaux.klipspringer.codec.spi
-
Plugin to be used as audio service provider.
- VorbisAudioFileReader() - Constructor for class net.avadeaux.klipspringer.codec.spi.VorbisAudioFileReader
-
Constructor.
- VorbisDecoder - Class in net.avadeaux.klipspringer.codec
-
Ogg Vorbis file decoder that interfaces to Vorbis library.
- VorbisDecoder(String, AudioDecoder.Target) - Constructor for class net.avadeaux.klipspringer.codec.VorbisDecoder
-
Initiates decoder, including opening the file.
- VorbisStream - Class in net.avadeaux.klipspringer.codec
-
Audio stream that sends Vorbis encoded data to a channel.
- VorbisStream(PcmFormat, float, double, double, int, WritableByteChannel, Executor, double) - Constructor for class net.avadeaux.klipspringer.codec.VorbisStream
-
Creates an Ogg Vorbis stream with the given specifications and destination channel.
- vorbisSupported() - Static method in class net.avadeaux.klipspringer.codec.Library
-
Checks if set up with a library compiled with Vorbis support.
W
- write(byte[], int, int) - Method in interface net.avadeaux.klipspringer.codec.ByteTransfer.ArrayWriter
-
Writes up to the specified length of bytes to the output from the given byte array.
- write(ByteBuffer) - Method in class net.avadeaux.klipspringer.alsa.Alsa.Player
- write(ByteBuffer) - Method in interface net.avadeaux.klipspringer.codec.Device.Player
-
Writes a block of audio data in
the bit layout expectedby the player. - write(ByteBuffer) - Method in class net.avadeaux.klipspringer.codec.ExternalEncodedStream
-
Writes data to an external buffer, whose content is then immediately encoded, and encoded data is sent to the receiver.
- write(ByteBuffer) - Method in class net.avadeaux.klipspringer.codec.LinePlayer
- write(ByteBuffer) - Method in class net.avadeaux.klipspringer.codec.PcmChannelEncoder
- write(ByteBuffer) - Method in interface net.avadeaux.klipspringer.codec.PcmWriter
-
Writes a block of audio data.
- write(ByteBuffer, ByteTransfer.ArrayWriter, int) - Static method in class net.avadeaux.klipspringer.codec.ByteTransfer
-
Writes data from a buffer, if necessary via an intermediary nondirect byte buffer.
- writeDirect(ByteBuffer, PcmWriter, int) - Static method in class net.avadeaux.klipspringer.codec.ByteTransfer
-
Writes PCM data from a byte buffer via an intermediary direct byte buffer.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form