marf.Storage.Loaders
Class ULAWLoader

java.lang.Object
  |
  +--marf.Storage.SampleLoader
        |
        +--marf.Storage.Loaders.ULAWLoader
All Implemented Interfaces:
ISampleLoader

public class ULAWLoader
extends SampleLoader

Not Implemented.

Since:
0.0.1
Version:
$Revision: 1.12 $
Author:
Serguei Mokhov

Field Summary
 
Fields inherited from class marf.Storage.SampleLoader
iRequiredBitSize, iRequiredChannels, iRequiredFrequency, oAudioFormat, oAudioInputStream, oByteArrayOutputStream, oSample
 
Fields inherited from interface marf.Storage.ISampleLoader
DEFAULT_CHANNELS, DEFAULT_FREQUENCY, DEFAULT_SAMPLE_BIT_SIZE, INTERFACE_CODE_REVISION
 
Constructor Summary
ULAWLoader()
          ULAWLoader Constructor.
 
Method Summary
static java.lang.String getRevision()
          Returns source code revision information.
 marf.Storage.Sample loadSample(java.io.File poFile)
          Not Implemented.
 int readAudioData(double[] pSample)
          Not Implemented.
 void saveSample(java.io.File poFile)
          Not Implemented.
 int writeAudioData(double[] pSample, int nbrData)
          Not Implemented.
 
Methods inherited from class marf.Storage.SampleLoader
getSample, getSampleSize, loadSample, reset, saveSample, setSample, updateSample
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ULAWLoader

public ULAWLoader()
ULAWLoader Constructor.

Method Detail

loadSample

public marf.Storage.Sample loadSample(java.io.File poFile)
                               throws StorageException
Not Implemented.

Parameters:
poFile - file object a sample to be read from
Returns:
Sample object refernce
Throws:
StorageException

readAudioData

public final int readAudioData(double[] pSample)
                        throws StorageException
Not Implemented.

Parameters:
pSample - an array of doubles
Returns:
integer the number of datums read
Throws:
StorageException - if there was an error reading audio data

writeAudioData

public final int writeAudioData(double[] pSample,
                                int nbrData)
                         throws StorageException
Not Implemented.

Parameters:
pSample - an array of doubles
nbrData - the number of audio data to written from the paiAudiodata
Returns:
the number of data written
Throws:
StorageException - if there was an error loading the sample

saveSample

public void saveSample(java.io.File poFile)
                throws StorageException
Not Implemented.

Parameters:
poFile - File object of a sample to be saved to
Throws:
StorageException - if there was an error saving the sample

getRevision

public static java.lang.String getRevision()
Returns source code revision information.

Returns:
revision string
Since:
0.3.0