marf.Storage.Loaders
Class ULAWLoader

java.lang.Object
  extended by marf.Storage.SampleLoader
      extended by marf.Storage.Loaders.AudioSampleLoader
          extended by marf.Storage.Loaders.ULAWLoader
All Implemented Interfaces:
ISampleLoader

public class ULAWLoader
extends AudioSampleLoader

TODO: Not Implemented.

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

Field Summary
 
Fields inherited from class marf.Storage.Loaders.AudioSampleLoader
oAudioFormat, oAudioInputStream, oEncoding
 
Fields inherited from class marf.Storage.SampleLoader
fRequiredFrequency, iRequiredBitSize, iRequiredChannels, oByteArrayOutputStream, oSample
 
Fields inherited from interface marf.Storage.ISampleLoader
DEFAULT_CHANNELS, DEFAULT_FREQUENCY, DEFAULT_SAMPLE_BIT_SIZE, MARF_INTERFACE_CODE_REVISION
 
Constructor Summary
ULAWLoader()
          ULAWLoader Constructor.
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 Sample loadSample(java.io.File poFile)
          Not Implemented.
 int readSampleData(double[] padSample)
          Not Implemented.
 void saveSample(java.io.File poFile)
          Not Implemented.
 int writeSampleData(double[] padSample, int piNbrData)
          Not Implemented.
 
Methods inherited from class marf.Storage.Loaders.AudioSampleLoader
getAudioFormat, getAudioInputStream, getEncoding, getSampleSize, loadSample, readAudioData, reset, setAudioFormat, setAudioInputStream, setEncoding, writeAudioData
 
Methods inherited from class marf.Storage.SampleLoader
getRequiredBitSize, getRequiredChannels, getRequiredFrequency, getSample, loadSample, loadSample, saveSample, saveSample, saveSample, setRequiredBitSize, setRequiredChannels, setRequiredFrequency, 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 Sample loadSample(java.io.File poFile)
                  throws StorageException
Not Implemented.

Specified by:
loadSample in interface ISampleLoader
Overrides:
loadSample in class SampleLoader
Parameters:
poFile - incoming sample File object
Returns:
Sample object
Throws:
StorageException - if there was a problem loading the sample
See Also:
ISampleLoader.loadSample(java.io.File)

readSampleData

public final int readSampleData(double[] padSample)
                         throws StorageException
Not Implemented.

Parameters:
padSample - an array of doubles to store the data read
Returns:
the number of datums read
Throws:
StorageException - if there was an error reading the data
See Also:
ISampleLoader.readSampleData(double[])

writeSampleData

public final int writeSampleData(double[] padSample,
                                 int piNbrData)
                          throws StorageException
Not Implemented.

Parameters:
padSample - an array of doubles
piNbrData - the number of data items (words) to write from the padSampleData
Returns:
the number of data actually written
Throws:
StorageException - if there was an error loading the sample
See Also:
ISampleLoader.writeSampleData(double[], int)

saveSample

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

Specified by:
saveSample in interface ISampleLoader
Overrides:
saveSample in class SampleLoader
Parameters:
poFile - File object of a sample to be saved to
Throws:
StorageException - if there was an error saving the sample
See Also:
ISampleLoader.saveSample(java.io.File)

getMARFSourceCodeRevision

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

Returns:
revision string
Since:
0.3.0.2


SourceForge Logo