holoedit.fileio
Class WaveFormSimpleReader

java.lang.Object
  extended by holoedit.fileio.WaveFormSimpleReader
All Implemented Interfaces:
java.lang.Runnable

public class WaveFormSimpleReader
extends java.lang.Object
implements java.lang.Runnable


Field Summary
private  boolean bigEndian
           
private  int byteLength
           
private  int chanNum
           
private  boolean done
           
private  int error
           
static int FILE_ERROR
           
private  float fileLength
           
private  java.lang.String fileType
           
private  boolean fine
           
private  int frameLength
           
private  HoloWaveForm[] hwfs
           
static int INDEX_ERROR
           
static int LOAD_ERROR
           
static int MONO_ERROR
           
static int NO_ERROR
           
static int OCTET_ERROR
           
private  int octets
           
static int PATH_ERROR
           
static int PATH2_ERROR
           
private  java.lang.Thread runner
           
private  float sampleRate
           
private  float sampleRateMs
           
private  int sampleSize
           
 java.io.File soundFile
           
static int SSDII_NORSRC_ERROR
           
static int SSDII_RSRC_ERROR
           
static int TYPE_ERROR
           
private static boolean VERBOSE
           
 
Constructor Summary
WaveFormSimpleReader(java.io.File f)
           
 
Method Summary
private  void createMonoWaveforms()
           
private  void createWaveforms()
           
 int getError()
           
 HoloWaveForm[] getHoloWaveForms()
           
 boolean isDone()
           
 boolean isFine()
           
 java.lang.String msToHMSMSSmp(float ms)
          UTILS
private  void readSd2File()
           
 void run()
           
 void stop()
           
 void verbose(java.lang.String s)
           
 void verboseln(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

runner

private java.lang.Thread runner

hwfs

private HoloWaveForm[] hwfs

soundFile

public java.io.File soundFile

fine

private boolean fine

done

private boolean done

error

private int error

NO_ERROR

public static final int NO_ERROR
See Also:
Constant Field Values

MONO_ERROR

public static final int MONO_ERROR
See Also:
Constant Field Values

TYPE_ERROR

public static final int TYPE_ERROR
See Also:
Constant Field Values

LOAD_ERROR

public static final int LOAD_ERROR
See Also:
Constant Field Values

OCTET_ERROR

public static final int OCTET_ERROR
See Also:
Constant Field Values

INDEX_ERROR

public static final int INDEX_ERROR
See Also:
Constant Field Values

FILE_ERROR

public static final int FILE_ERROR
See Also:
Constant Field Values

PATH_ERROR

public static final int PATH_ERROR
See Also:
Constant Field Values

PATH2_ERROR

public static final int PATH2_ERROR
See Also:
Constant Field Values

SSDII_NORSRC_ERROR

public static final int SSDII_NORSRC_ERROR
See Also:
Constant Field Values

SSDII_RSRC_ERROR

public static final int SSDII_RSRC_ERROR
See Also:
Constant Field Values

sampleSize

private int sampleSize

octets

private int octets

bigEndian

private boolean bigEndian

byteLength

private int byteLength

frameLength

private int frameLength

chanNum

private int chanNum

sampleRate

private float sampleRate

sampleRateMs

private float sampleRateMs

fileLength

private float fileLength

fileType

private java.lang.String fileType
Constructor Detail

WaveFormSimpleReader

public WaveFormSimpleReader(java.io.File f)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

readSd2File

private void readSd2File()

createWaveforms

private void createWaveforms()

createMonoWaveforms

private void createMonoWaveforms()

msToHMSMSSmp

public java.lang.String msToHMSMSSmp(float ms)
UTILS


isFine

public boolean isFine()

isDone

public boolean isDone()

getError

public int getError()

verbose

public void verbose(java.lang.String s)

verboseln

public void verboseln(java.lang.String s)

getHoloWaveForms

public HoloWaveForm[] getHoloWaveForms()

stop

public void stop()