net.beadsproject.beads.core
Class IOAudioFormat

java.lang.Object
  extended by net.beadsproject.beads.core.IOAudioFormat

public class IOAudioFormat
extends java.lang.Object

Encapsulates data bout audio format for IO. Also has number of input channels, in addition to the standard number of channels, so this defines the format for an input/output system. 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 inputs
           
 int outputs
           
 float sampleRate
           
 boolean signed
           
 
Constructor Summary
IOAudioFormat(float sampleRate, int bitDepth, int inputs, int outputs)
           
IOAudioFormat(float sampleRate, int bitDepth, int inputs, int outputs, 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

inputs

public final int inputs

outputs

public final int outputs

bitDepth

public final int bitDepth

sampleRate

public final float sampleRate

bigEndian

public final boolean bigEndian

signed

public final boolean signed
Constructor Detail

IOAudioFormat

public IOAudioFormat(float sampleRate,
                     int bitDepth,
                     int inputs,
                     int outputs,
                     boolean signed,
                     boolean bigEndian)

IOAudioFormat

public IOAudioFormat(float sampleRate,
                     int bitDepth,
                     int inputs,
                     int outputs)