Index

A B C D E F G I L M N O P R S W 
All Classes and Interfaces|All Packages|Serialized Form

A

addLineListener(LineListener) - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
AuChannelStreamLine - Class in net.avadeaux.klipspringer.encoder
Channel stream line for Au (simple audio) encoding.
AuChannelStreamLine(WritableByteChannel, AudioFormat, long, long, int) - Constructor for class net.avadeaux.klipspringer.encoder.AuChannelStreamLine
Creates a line for streaming in Au format to a channel.
AudioChannelException - Exception Class in net.avadeaux.klipspringer.encoder
Exception originating from audio encoding, for instance if the output channel is closed.
AudioDecoder - Interface in net.avadeaux.klipspringer.decoder
Interface for audio decoding.
AudioDecoder.Target - Interface in net.avadeaux.klipspringer.decoder
Audio decoding target interface.
AudioDecoderFactory - Class in net.avadeaux.klipspringer.decoder
Interface for getting AudioDecoder given file name and target.
AudioDecoderFactory() - Constructor for class net.avadeaux.klipspringer.decoder.AudioDecoderFactory
 
AudioDecodingError - Exception Class in net.avadeaux.klipspringer.decoder
Error thrown if an unexpected (potentially fatal) problem arises in decoding.
AudioDecodingException - Exception Class in net.avadeaux.klipspringer.decoder
Exception originating from audio decoding.
AudioEncodingError - Exception Class in net.avadeaux.klipspringer.encoder
Error thrown if an unexpected (potentially fatal) problem arises in encoding.
AudioInputStreamDecoder - Class in net.avadeaux.klipspringer.decoder
Audio decoder that reads from an AudioInputStream.
AudioInputStreamDecoder(AudioInputStream, AudioDecoder.Target) - Constructor for class net.avadeaux.klipspringer.decoder.AudioInputStreamDecoder
Sets up for sending data from the given AudioInputStream to the given target.
available() - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
 
available() - Method in class net.avadeaux.klipspringer.encoder.AuChannelStreamLine
 
available() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 

B

bc - Variable in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
bips - Variable in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
bitrate() - Method in class net.avadeaux.klipspringer.encoder.LameChannelStreamLine
 
bsam - Variable in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
buf - Variable in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
bufferedSamples() - Method in class net.avadeaux.klipspringer.encoder.AuChannelStreamLine
 
bufferedSamples() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
Number of bytes received by the line but not yet sent to the channel.
bufferedSamples() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
byps - Variable in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 

C

ChannelStreamLine - Class in net.avadeaux.klipspringer.encoder
Line for streaming audio to a channel.
ChannelStreamLine(WritableByteChannel, AudioFormat, long, long) - Constructor for class net.avadeaux.klipspringer.encoder.ChannelStreamLine
Creates a line for streaming to a channel.
close() - Method in interface net.avadeaux.klipspringer.decoder.AudioDecoder
Closes decoder, releasing resources.
close() - Method in interface net.avadeaux.klipspringer.decoder.AudioDecoder.Target
Instructs the target to release any write-handling resources it holds.
close() - Method in class net.avadeaux.klipspringer.decoder.AudioInputStreamDecoder
Closes stream.
close() - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
Closes the stream, causing decoding to be aborted and the feeder thread to finish.
close() - Method in class net.avadeaux.klipspringer.decoder.FlacDecoder
 
close() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
Closes the line and the destination channel, without writing anything.
close() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
close() - Method in class net.avadeaux.klipspringer.encoder.PlayerState
Sets status to closed and notifies all waiting.
create(ByteBuffer[], int, int, int, int, WritableByteChannel) - Method in interface net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine.EncoderFactory
 

D

decodeAll(long) - Method in interface net.avadeaux.klipspringer.decoder.AudioDecoder
Sends audio data to the target, one block at the time, starting from the given sample frame number (zero to start at the beginning).
decodeAll(long) - Method in class net.avadeaux.klipspringer.decoder.AudioInputStreamDecoder
 
decodeAll(long) - Method in class net.avadeaux.klipspringer.decoder.FlacDecoder
 
decodeMetadata() - Method in interface net.avadeaux.klipspringer.decoder.AudioDecoder
Decodes metadata and sends it to the target, without writing any blocks.
decodeMetadata() - Method in class net.avadeaux.klipspringer.decoder.AudioInputStreamDecoder
 
decodeMetadata() - Method in class net.avadeaux.klipspringer.decoder.FlacDecoder
 
drain() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
Emits data buffered on the line to the channel before returning.
dsam - Variable in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 

E

EncoderChannelStreamLine - Class in net.avadeaux.klipspringer.encoder
Abstract line that organizes audio channels in separate buffers.
EncoderChannelStreamLine(WritableByteChannel, AudioFormat, long, long, int, EncoderChannelStreamLine.EncoderFactory) - Constructor for class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
bc should not be non-blocking.
EncoderChannelStreamLine.EncoderFactory - Interface in net.avadeaux.klipspringer.encoder
Factory interface for subclasses to provide the constructor with a way of producing an encoder handle.
esam - Variable in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 

F

finish() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
Emits buffered data and any data buffered in encoder.
finish() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
finish(long) - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
finish(long) - Method in class net.avadeaux.klipspringer.encoder.FlacChannelStreamLine
 
finish(long) - Method in class net.avadeaux.klipspringer.encoder.LameChannelStreamLine
 
FlacAudioInputStream - Class in net.avadeaux.klipspringer.decoder
Wrapper for FlacDecoder that allows reading a FLAC file as a javax.sound.sampled.AudioInputStream.
FlacChannelStreamLine - Class in net.avadeaux.klipspringer.encoder
Channel stream line for FLAC encoding.
FlacChannelStreamLine(WritableByteChannel, AudioFormat, boolean, int, long, long, int, int) - Constructor for class net.avadeaux.klipspringer.encoder.FlacChannelStreamLine
Constructs a line for encoding either native FLAC or Ogg FLAC.
FlacDecoder - Class in net.avadeaux.klipspringer.decoder
Class that interfaces to FLAC library for decoding.
FlacDecoder(String, AudioDecoder.Target) - Constructor for class net.avadeaux.klipspringer.decoder.FlacDecoder
Initiates decoder, including opening the file.
flush() - Method in class net.avadeaux.klipspringer.encoder.AuChannelStreamLine
Discards buffered data that has not yet been written to the channel.
flush() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
Discards buffered data that has not yet been written to the channel.
free(long) - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
free(long) - Method in class net.avadeaux.klipspringer.encoder.FlacChannelStreamLine
 
free(long) - Method in class net.avadeaux.klipspringer.encoder.LameChannelStreamLine
 
fs - Variable in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 

G

getAudioDecoder(String, AudioDecoder.Target) - Method in class net.avadeaux.klipspringer.decoder.AudioDecoderFactory
Factory method that creates an audio decoder suitable for the format of the given file (if it can), with the given target for audio data.
getBufferSize() - Method in class net.avadeaux.klipspringer.encoder.AuChannelStreamLine
 
getBufferSize() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
getControl(Control.Type) - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
getControls() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
getFormat() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
getFramePosition() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
getInstance() - Static method in class net.avadeaux.klipspringer.decoder.AudioDecoderFactory
Gets a factory that works for known PCM file types, including FLAC.
getInstance(String) - Static method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
Creates an AudioInputStream that reads from the specified file.
getLevel() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
getLineInfo() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
getLongFramePosition() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
getMicrosecondPosition() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 

I

isActive() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
isControlSupported(Control.Type) - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
isOpen() - Method in class net.avadeaux.klipspringer.encoder.PlayerState
Checks if the object is not closed.
isRunning() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 

L

LameChannelStreamLine - Class in net.avadeaux.klipspringer.encoder
Channel stream line for MP3 encoding.
LameChannelStreamLine(WritableByteChannel, AudioFormat, int, int, long, long, int) - Constructor for class net.avadeaux.klipspringer.encoder.LameChannelStreamLine
Constructs a line for encoding either native FLAC or Ogg FLAC.

M

mark(int) - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
Remembers the current position for a later reset.
markSupported() - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
Returns true.
metadata(AudioFormat, long) - Method in interface net.avadeaux.klipspringer.decoder.AudioDecoder.Target
Information about format and length of the data that is to arrive with write.

N

net.avadeaux.klipspringer.decoder - package net.avadeaux.klipspringer.decoder
Classes for decoding audio data, which supports FLAC by integrating integrating libFLAC via the Java Native Interface.
net.avadeaux.klipspringer.encoder - package net.avadeaux.klipspringer.encoder
Support for streaming audio data to a WritableByteChannel in FLAC, MP3, or Au format.

O

onClose(Runnable) - Method in class net.avadeaux.klipspringer.encoder.PlayerState
Registers something to be run on close.
open() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
open(AudioFormat) - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
open(AudioFormat, int) - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
outputSamples() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
Number of samples known to have been sent to the client endpoint for playing.
outputSamples() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
outputSamples(long) - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
outputSamples(long) - Method in class net.avadeaux.klipspringer.encoder.FlacChannelStreamLine
 
outputSamples(long) - Method in class net.avadeaux.klipspringer.encoder.LameChannelStreamLine
 

P

playedMillis() - Method in class net.avadeaux.klipspringer.encoder.PlayerState
Gets the played amount.
playedMillis(long) - Method in class net.avadeaux.klipspringer.encoder.PlayerState
Sets the played amount.
PlayerState - Class in net.avadeaux.klipspringer.encoder
Record of the amount of audio data that has been played by the final recipient.
PlayerState() - Constructor for class net.avadeaux.klipspringer.encoder.PlayerState
 

R

read() - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
 
read(byte[]) - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
 
read(byte[], int, int) - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
 
removeLineListener(LineListener) - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
reset() - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
Resets the stream to the marked position, or to the beginning if mark() has not been called.
reusable() - Method in interface net.avadeaux.klipspringer.decoder.AudioDecoder
True if decodeAll can be called more than once, each time resetting the underlying input.
reusable() - Method in class net.avadeaux.klipspringer.decoder.AudioInputStreamDecoder
Returns false, indicating that decodeAll can be called at most once.
reusable() - Method in class net.avadeaux.klipspringer.decoder.FlacDecoder
Always returns true, indicating that decodeAll can be called more than once, each time resetting the underlying input.

S

setThreadFactory(ThreadFactory) - Static method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
Sets global thread factory for feeder threads, returning the previous factory.
skip(long) - Method in class net.avadeaux.klipspringer.decoder.FlacAudioInputStream
Skips ahead the given number of bytes in the stream.
start() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 
stop() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
 

W

waitForPlayed(long, long) - Method in class net.avadeaux.klipspringer.encoder.PlayerState
Waits until a certain amount has been played.
write(byte[], int, int) - Method in class net.avadeaux.klipspringer.encoder.AuChannelStreamLine
 
write(byte[], int, int) - Method in class net.avadeaux.klipspringer.encoder.FlacChannelStreamLine
 
write(byte[], int, int) - Method in class net.avadeaux.klipspringer.encoder.LameChannelStreamLine
 
write(ByteBuffer) - Method in interface net.avadeaux.klipspringer.decoder.AudioDecoder.Target
Writes a block of audio data to the target, organized in frames as specified by metadata.
writeBuffer() - Method in class net.avadeaux.klipspringer.encoder.AuChannelStreamLine
 
writeBuffer() - Method in class net.avadeaux.klipspringer.encoder.ChannelStreamLine
Writes data buffered on the line to the channel.
writeBuffer() - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
writeBuffer(long, int) - Method in class net.avadeaux.klipspringer.encoder.EncoderChannelStreamLine
 
writeBuffer(long, int) - Method in class net.avadeaux.klipspringer.encoder.FlacChannelStreamLine
 
writeBuffer(long, int) - Method in class net.avadeaux.klipspringer.encoder.LameChannelStreamLine
 
WriteTimeoutException - Exception Class in net.avadeaux.klipspringer.encoder
Thrown when the client fails to notify that it has played anything for a time that exceeds the limit.
WriteTimeoutException() - Constructor for exception class net.avadeaux.klipspringer.encoder.WriteTimeoutException
 
WriteTimeoutException(String) - Constructor for exception class net.avadeaux.klipspringer.encoder.WriteTimeoutException
 
A B C D E F G I L M N O P R S W 
All Classes and Interfaces|All Packages|Serialized Form