Class SoundFile
java.lang.Object
games.stendhal.client.sound.system.SignalProcessor
games.stendhal.client.sound.manager.SoundFile
- All Implemented Interfaces:
Cloneable
- Author:
- silvio
-
Constructor Summary
ConstructorDescriptionSoundFile(AudioResource audioResource, SoundFileType fileType, int outputNumSamplesPerChannel, boolean enableStreaming)
-
Method Summary
Methods inherited from class games.stendhal.client.sound.system.SignalProcessor
connectTo, createChain, disconnect, finished, insert, modify, propagate, quit, replace, request, split
-
Constructor Details
-
SoundFile
public SoundFile(AudioResource audioResource, SoundFileType fileType, int outputNumSamplesPerChannel, boolean enableStreaming) throws IOException- Throws:
IOException
-
-
Method Details
-
getNumChannels
public int getNumChannels() -
getSampleRate
public int getSampleRate() -
close
public void close() -
clone
-
restart
public void restart() -
generate
protected boolean generate()Description copied from class:SignalProcessor
This function should be overwritten by all classes that want to generate an PCM audio stream e.g. a mp3 decoder, a frequency generator, ...- Overrides:
generate
in classSignalProcessor
- Returns:
true
, until the stream is finished
-