marf.Storage
Class SampleLoaderFactory

java.lang.Object
  extended by marf.Storage.SampleLoaderFactory

public final class SampleLoaderFactory
extends java.lang.Object

Provides a factory to instantiate requested SampleLoader module(s).

$Id: SampleLoaderFactory.java,v 1.3 2007/12/23 06:29:46 mokhov Exp $

Since:
0.3.0.5
Version:
$Revision: 1.3 $
Author:
Serguei Mokhov

Method Summary
static ISampleLoader create(int piSampleFormat)
          Instantiates a SampleLoader module indicated by the first parameter with the 2nd parameter as an argument.
static ISampleLoader create(java.lang.Integer poSampleFormat)
          Instantiates a SampleLoader module indicated by the first parameter with the 2nd parameter as an argument.
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static final ISampleLoader create(java.lang.Integer poSampleFormat)
                                  throws InvalidSampleFormatException
Instantiates a SampleLoader module indicated by the first parameter with the 2nd parameter as an argument.

Parameters:
poSampleFormat - the integer value corresponding to the desired SampleLoader module
Returns:
a reference to the instance of the created sample loader
Throws:
InvalidSampleFormatException - if the indicated module is unknown or could not be loaded due sample format mismatch
See Also:
MARF.WAV, MARF.MP3, MARF.ULAW, MARF.SINE, MARF.AIFF, MARF.AIFFC, MARF.AU, MARF.SND, MARF.MIDI, WAVLoader, MP3Loader, ULAWLoader, SineLoader, AIFFLoader, AIFFCLoader, AULoader, SNDLoader, MIDILoader

create

public static final ISampleLoader create(int piSampleFormat)
                                  throws InvalidSampleFormatException
Instantiates a SampleLoader module indicated by the first parameter with the 2nd parameter as an argument.

Parameters:
piSampleFormat - the integer value corresponding to the desired SampleLoader module
Returns:
a reference to the instance of the created sample loader
Throws:
InvalidSampleFormatException - if the indicated module is unknown or could not be loaded due sample format mismatch
See Also:
MARF.WAV, MARF.MP3, MARF.ULAW, MARF.SINE, MARF.AIFF, MARF.AIFFC, MARF.AU, MARF.SND, MARF.MIDI, MARF.CUSTOM, WAVLoader, MP3Loader, ULAWLoader, SineLoader, AIFFLoader, AIFFCLoader, AULoader, SNDLoader, MIDILoader

getMARFSourceCodeRevision

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

Returns:
revision string


SourceForge Logo