Class JmolAudio
java.lang.Object
org.jmol.util.JmolAudio
- All Implemented Interfaces:
EventListener, LineListener, JmolAudioPlayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecute an action from load audio "xxxxx.wav" filter "id=a1 action=xxx"voidWAV only for applicationvoidprocessUpdate(String type) In JavaScript, this is called directly from the page in response to events; in Java it is called from the audio player via update(LineEvent).void
-
Constructor Details
-
JmolAudio
public JmolAudio()
-
-
Method Details
-
playAudio
-
update
- Specified by:
updatein interfaceLineListener
-
processUpdate
In JavaScript, this is called directly from the page in response to events; in Java it is called from the audio player via update(LineEvent).- Specified by:
processUpdatein interfaceJmolAudioPlayer- Parameters:
type-
-
action
Execute an action from load audio "xxxxx.wav" filter "id=a1 action=xxx"- Specified by:
actionin 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
-