sdl.audio
Class AudioPlay
java.lang.Object
|
+--sdl.audio.AudioPlay
- public class AudioPlay
- extends java.lang.Object
Wrapper around the sound to be played. This is where the "real" sound
file playing happens. Control this object state is managed
by the AudioCallBack interface.
Playing of the audio file will be handled by the SDL native routines.
Key Concepts:
- Active -
The data in an AudioPlay object will played when its state is set to
"Active" by the callback.
- Position -The position in the audio file that will be played next.
(0 is the beginning of the file)
- Play - The audio data managed by AudioPlay is converted and mixed
into the audio stream. The audio stream to the audio device
is managed by SDLAudio. All the AudioPlay managed sound files will be
mixed into this stream.
- See Also:
AudioCallBack
,
AudioData
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AudioPlay
public AudioPlay()
AudioPlay
public AudioPlay(boolean active,
AudioData data,
int position,
SDLAudioSpec spec,
java.lang.String fileName)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getActive
public boolean getActive()
setActive
public void setActive(boolean b)
getAudioData
public AudioData getAudioData()
setAudioData
public void setAudioData(AudioData dat)
getAudioSpec
public SDLAudioSpec getAudioSpec()
setFileName
public void setFileName(java.lang.String fileName)
getFileName
public java.lang.String getFileName()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
setAudioSpec
public void setAudioSpec(SDLAudioSpec spec)
getPosition
public int getPosition()
setPosition
public void setPosition(int p)