holoedit.fileio
Class WaveFormSimpleReader
java.lang.Object
holoedit.fileio.WaveFormSimpleReader
- All Implemented Interfaces:
- java.lang.Runnable
public class WaveFormSimpleReader
- extends java.lang.Object
- implements java.lang.Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
WaveFormSimpleReader
public WaveFormSimpleReader(java.io.File f)
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()