Package org.jmol.util

Class JmolAudio

    • Constructor Detail

      • JmolAudio

        public JmolAudio()
    • Method Detail

      • playAudio

        public void playAudio​(Viewer vwr,
                              Map<String,​Object> htParams)
        WAV only for application
        Parameters:
        vwr -
        htParams -
      • processUpdate

        public void processUpdate​(String type)
      • action

        public void action​(String action)
        Execute an action from load audio "xxxxx.wav" filter "id=a1 action=xxx"
        Specified by:
        action in interface JmolAudioPlayer
        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