Package org.jmol.util
Class JmolAudio
java.lang.Object
org.jmol.util.JmolAudio
- All Implemented Interfaces:
EventListener
,LineListener
,JmolAudioPlayer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_LOOP
private static final int MAX_LOOP- See Also:
-
params
-
myClip
-
fileName
-
vwr
-
id
-
idCount
private static int idCount -
autoClose
private boolean autoClose
-
-
Constructor Details
-
JmolAudio
public JmolAudio()
-
-
Method Details
-
playAudio
WAV only for application- Parameters:
vwr
-htParams
-
-
getClip
- Throws:
Exception
-
update
- Specified by:
update
in interfaceLineListener
-
processUpdate
-
action
Execute an action from load audio "xxxxx.wav" filter "id=a1 action=xxx"- Specified by:
action
in interfaceJmolAudioPlayer
- Parameters:
action
- start -- back to the beginning and olay loop -- loop indefinitely (JavaScript) or up to 10 times (Java) and play play -- start from current position; opposite of PAUSE pause -- opposite of PLAY (not implemented: position-nn reposition to nnn ms) close -- close player
-