- All Implemented Interfaces:
- BufferedAudio, Effectable, Recordable, Triggerable
public abstract class AudioSample
- extends AudioSource
- implements BufferedAudio, Triggerable
AudioSample is a special kind of file playback that allows
you to repeatedly trigger an audio file. It does this by keeping the
entire file in an internal buffer and then keeping a list of trigger points.
Effectable so access to the samples is
AudioEffects can be attached to it, but there
are not the cueing abilities found on an
AudioPlayer. All you can do is
sound. However, you can trigger the sound even if it is still playing back.
It is not advised that you use this class for long sounds (like entire songs,
for example) because the entire file is kept in memory.
- Damien Di Fede
Constructs an AudioSample object that gets its audio from stream.
|Methods inherited from class ddf.minim.AudioSource
addEffect, addListener, bufferSize, clearEffects, close, disableEffect, disableEffect, effectCount, effects, enableEffect, enableEffect, getEffect, getFormat, hasEffect, isEffected, isEnabled, noEffects, removeEffect, removeEffect, removeListener, sampleRate, type
|Methods inherited from class ddf.minim.Controller
balance, gain, getBalance, getControl, getControls, getGain, getPan, getVolume, hasControl, isMuted, mute, pan, printControls, setBalance, setGain, setPan, setVolume, shiftBalance, shiftGain, shiftPan, shiftVolume, unmute, volume
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AudioSample(AudioOut output)
- Constructs an AudioSample object that gets its audio from stream.
stream - the stream that will provide the audio
public abstract AudioMetaData getMetaData()
- the AudioMetaData for the sample.