Modifier and Type | Field and Description |
---|---|
protected AudioFormat |
Audio.format
The format of the audio in this audio object
|
Modifier and Type | Method and Description |
---|---|
AudioFormat |
AudioFormat.clone() |
AudioFormat |
Audio.getFormat()
Get the audio format of this audio object.
|
AudioFormat |
AudioFormat.setBigEndian(boolean isBigEndian)
Set whether the data is big-endian or not.
|
AudioFormat |
AudioFormat.setNBits(int nBits)
Sets the number of bits in this audio format.
|
AudioFormat |
AudioFormat.setNumChannels(int nChannels)
Set the number of channels in this format.
|
AudioFormat |
AudioFormat.setSampleRateKHz(double s)
Set the sample rate at which the audio should be replayed
|
AudioFormat |
AudioFormat.setSigned(boolean isSigned)
Set whether the data is signed or not.
|
Modifier and Type | Method and Description |
---|---|
void |
Audio.setFormat(AudioFormat format)
Set the audio format of this audio object.
|
void |
JavaSoundAudioGrabber.setFormat(AudioFormat format)
Set the audio format of this audio object.
|
Constructor and Description |
---|
AudioMixer(AudioFormat af)
Default constructor that takes the format for the samples.
|
JavaSoundAudioGrabber(AudioFormat format)
Default constructor
|
SampleChunk(AudioFormat af)
Create a new SampleChunk buffer with the given audio format, but do not
initialise the samples.
|
SampleChunk(byte[] samples,
AudioFormat af)
Create a new sample chunk using the given samples and the given audio
format.
|
SampleChunk(byte[] samples,
AudioFormat af,
AudioTimecode tc)
Create a new sample chunk using the given samples and the given audio
format.
|
Modifier and Type | Method and Description |
---|---|
static SampleChunk |
FourierTransform.inverseTransform(AudioFormat format,
float[][] transformedData)
Given some transformed audio data, will convert it back into
a sample chunk.
|
Constructor and Description |
---|
BeatDetector(AudioFormat af)
Default constructor
|
BeatDetector(AudioStream as,
AudioFormat af)
Chainable constructor.
|
Modifier and Type | Method and Description |
---|---|
AudioFormat |
AudioConverter.getOutputFormat()
Same as
Audio.getFormat() for this class - returns the output format. |
Modifier and Type | Method and Description |
---|---|
static AudioProcessor |
AudioConverter.calculateProcess(AudioFormat input,
AudioFormat output)
Calculates the chain of processors that will convert from one format to the
other and will return the first in the chain.
|
abstract SampleChunk |
BitDepthConverter.BitDepthConversionAlgorithm.process(SampleChunk s,
AudioFormat output)
Process a sample chunk and output a sample chunk in the given
output format.
|
abstract SampleChunk |
SampleRateConverter.SampleRateConversionAlgorithm.process(SampleChunk s,
AudioFormat output)
Process a sample chunk and output a sample chunk in the given
output format.
|
Constructor and Description |
---|
AudioConverter(AudioFormat input,
AudioFormat output)
Constructor that takes the input and output formats.
|
AudioConverter(AudioStream stream,
AudioFormat output)
Chainable constructor that takes the stream to chain and the
output format to convert the stream to.
|
BitDepthConverter(AudioStream as,
BitDepthConverter.BitDepthConversionAlgorithm converter,
AudioFormat outputFormat)
Chainable constructor.
|
BitDepthConverter(BitDepthConverter.BitDepthConversionAlgorithm converter,
AudioFormat outputFormat)
Default constructor that takes the input conversion
|
SampleRateConverter(AudioStream as,
SampleRateConverter.SampleRateConversionAlgorithm converter,
AudioFormat outputFormat)
Chainable constructor.
|
SampleRateConverter(SampleRateConverter.SampleRateConversionAlgorithm converter,
AudioFormat outputFormat)
Default constructor that takes the input conversion
|
Modifier and Type | Method and Description |
---|---|
float[][] |
MelFilterBank.process(float[][] spectrum,
AudioFormat format)
Process the input power spectrum with this filter bank.
|
double |
TriangularFilter.process(float[] frequencySpectrum,
AudioFormat format)
Requires a power spectrum and produces an output the filter
|
Constructor and Description |
---|
MusicalNoteFilterBank(AudioFormat af)
Create a 12-deep filter bank for detecting notes
between C4 and C5.
|
MusicalNoteFilterBank(int startOfRange,
int endOfRange,
AudioFormat af)
Create a filter bank for detecting notes between the start
note given and the end note given.
|
Modifier and Type | Method and Description |
---|---|
SampleChunk |
Oscillator.getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
SampleChunk |
Oscillator.SineOscillator.getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
SampleChunk |
Oscillator.SquareOscillator.getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
SampleChunk |
Oscillator.SawOscillator.getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
SampleChunk |
Oscillator.NoiseOscillator.getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
SampleChunk |
Oscillator.DummyOscillator.getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
SampleChunk |
Oscillator.FrequencyModulatedOscillator.getSampleChunk(int length,
double time,
double freq,
int gain,
AudioFormat format) |
Modifier and Type | Method and Description |
---|---|
AudioFormat |
SampleBuffer16Bit.getFormat()
Returns the audio format for this set of samples.
|
AudioFormat |
SampleBuffer8Bit.getFormat()
Returns the audio format for this set of samples.
|
AudioFormat |
SampleBuffer.getFormat()
Returns the audio format for this set of samples.
|
AudioFormat |
FloatSampleBuffer.getFormat()
Returns the audio format for this set of samples.
|
Modifier and Type | Method and Description |
---|---|
static SampleBuffer |
SampleBufferFactory.createSampleBuffer(AudioFormat af,
int size)
Create a
SampleBuffer . |
static SampleBuffer |
SampleBufferFactory.createSampleBuffer(SampleChunk s,
AudioFormat af)
Create a
SampleBuffer . |
void |
SampleBuffer16Bit.setFormat(AudioFormat af)
Reset the audio format for the samples in this buffer.
|
void |
SampleBuffer8Bit.setFormat(AudioFormat af)
Reset the audio format for the samples in this buffer.
|
void |
SampleBuffer.setFormat(AudioFormat af)
Reset the audio format for the samples in this buffer.
|
void |
FloatSampleBuffer.setFormat(AudioFormat af)
Reset the audio format for the samples in this buffer.
|
Constructor and Description |
---|
FloatSampleBuffer(double[] samples,
AudioFormat af) |
FloatSampleBuffer(float[] samples,
AudioFormat af) |
SampleBuffer16Bit(AudioFormat af,
int nSamples)
Create a new 16-bit sample buffer using the given sample format at the
given size.
|
SampleBuffer16Bit(SampleChunk samples,
AudioFormat af)
Create a new 16-bit sample buffer using the given samples and the given
audio format.
|
SampleBuffer8Bit(AudioFormat af,
int nSamples)
Create a new sample buffer with the given format and the given number of
samples.
|
SampleBuffer8Bit(SampleChunk samples,
AudioFormat af)
Create a new 8-bit sample buffer using the given samples and the given
audio format.
|
Modifier and Type | Method and Description |
---|---|
static SourceDataLine |
AudioUtils.getAnyJavaOutputLine(AudioFormat af)
Gets a Java output line (SourceDataLine) that can play something with
the given audio format.
|
static SourceDataLine |
AudioUtils.getJavaOutputLine(String deviceName,
AudioFormat af)
Returns a Java sound line for the given device name.
|
Modifier and Type | Method and Description |
---|---|
void |
AudioWaveform.setData(double[] samples,
AudioFormat format)
Samples represented as a set of doubles.
|