net.beadsproject.beads.data
Class SampleAudioFormat

java.lang.Object
  extended by 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

Field Summary
 boolean bigEndian
           
 int bitDepth
           
 int channels
           
 float sampleRate
           
 boolean signed
           
 
Constructor Summary
SampleAudioFormat(float sampleRate, int bitDepth, int channels)
           
SampleAudioFormat(float sampleRate, int bitDepth, int channels, boolean signed, boolean bigEndian)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SampleAudioFormat

public SampleAudioFormat(float sampleRate,
                         int bitDepth,
                         int channels,
                         boolean signed,
                         boolean bigEndian)

SampleAudioFormat

public SampleAudioFormat(float sampleRate,
                         int bitDepth,
                         int channels)