holoedit.fileio
Class WaveFormReader
java.lang.Object
holoedit.fileio.WaveFormReader
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable
public class WaveFormReader
- extends java.lang.Object
- implements java.lang.Runnable, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOWN_SAMPLING_FACTOR
private static int DOWN_SAMPLING_FACTOR
FRAME_SIZE
private static final int FRAME_SIZE
- See Also:
- Constant Field Values
VERBOSE
private static final int VERBOSE
- See Also:
- Constant Field Values
DS_PICK_LAST
private static final int DS_PICK_LAST
- See Also:
- Constant Field Values
DS_MAX
private static final int DS_MAX
- See Also:
- Constant Field Values
DS_MIN
private static final int DS_MIN
- See Also:
- Constant Field Values
DS_MEAN
private static final int DS_MEAN
- See Also:
- Constant Field Values
DS_MIN_MAX
private static final int DS_MIN_MAX
- See Also:
- Constant Field Values
DOWN_SAMPLING_TYPE
private static final int DOWN_SAMPLING_TYPE
- See Also:
- Constant Field Values
multiChannelBuffers
private byte[][] multiChannelBuffers
monoBuffer
private byte[] monoBuffer
pb
private transient ProgressBar pb
- Pour l'affichage d'une barre de progression pendant l'ouverture du fichier
runner
private transient java.lang.Thread runner
hwfs
private transient HoloWaveForm[] hwfs
soundFile
public java.io.File soundFile
cacheFile
private transient java.io.File cacheFile
fileDate
private long fileDate
- file last modified
cacheDirectory
public transient java.lang.String cacheDirectory
tmpdir
public static final transient java.lang.String tmpdir
- See Also:
- Constant Field Values
tmpser
public static final transient java.lang.String tmpser
- See Also:
- Constant Field Values
fine
private transient boolean fine
done
private transient boolean done
error
private transient int error
USING_CACHE_ERROR
public static final int USING_CACHE_ERROR
- See Also:
- Constant Field Values
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
mainRef
private transient Main mainRef
resString
public static final java.lang.String resString
- See Also:
- Constant Field Values
WaveFormReader
public WaveFormReader(java.io.File f,
Main owner)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
readSd2File
private void readSd2File()
createWaveforms
private void createWaveforms()
createMonoWaveforms
private void createMonoWaveforms()
treatFrame
private int treatFrame(javax.sound.sampled.AudioInputStream audioInputStream,
int frameNum)
throws java.io.IOException
- Throws:
java.io.IOException
treatSd2Frame
private int treatSd2Frame(java.io.InputStream is,
int frameNum)
throws java.io.IOException
- Throws:
java.io.IOException
treatMonoFrame
private int treatMonoFrame(javax.sound.sampled.AudioInputStream audioInputStream,
int frameNum)
throws java.io.IOException
- Throws:
java.io.IOException
treatSd2MonoFrame
private int treatSd2MonoFrame(java.io.InputStream is,
int frameNum)
throws java.io.IOException
- Throws:
java.io.IOException
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)
verbose2
public void verbose2(java.lang.String s)
verboseln
public void verboseln(java.lang.String s)
verboseln2
public void verboseln2(java.lang.String s)
getHoloWaveForms
public HoloWaveForm[] getHoloWaveForms()
stop
public void stop()
abs
public static byte abs(byte b)
max
public static byte max(byte b1,
byte b2)
min
public static byte min(byte b1,
byte b2)
mean
public static byte mean(byte b1,
byte b2)