net.beadsproject.beads.data
Class SampleAudioFormat
java.lang.Object
net.beadsproject.beads.data.SampleAudioFormat
public class SampleAudioFormat
- extends java.lang.Object
Encapsulates data about audio format for Samples.
We have elected to use our own AudioFormat instead of
javax.sound.sampled.AudioFormat as javasound is not supported everywhere.
- Author:
- ben
Constructor Summary |
SampleAudioFormat(float sampleRate,
int bitDepth,
int channels)
|
SampleAudioFormat(float sampleRate,
int bitDepth,
int channels,
boolean signed,
boolean bigEndian)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
channels
public final int channels
bitDepth
public final int bitDepth
sampleRate
public final float sampleRate
bigEndian
public final boolean bigEndian
signed
public final boolean signed
SampleAudioFormat
public SampleAudioFormat(float sampleRate,
int bitDepth,
int channels,
boolean signed,
boolean bigEndian)
SampleAudioFormat
public SampleAudioFormat(float sampleRate,
int bitDepth,
int channels)