Class PlatformAudio.BrowserAudioHandle

  • All Implemented Interfaces:
    IAudioHandle, org.teavm.jso.dom.events.EventListener<org.teavm.jso.webaudio.MediaEvent>, org.teavm.jso.JSObject
    Enclosing class:
    PlatformAudio

    protected static class PlatformAudio.BrowserAudioHandle
    extends java.lang.Object
    implements IAudioHandle, org.teavm.jso.dom.events.EventListener<org.teavm.jso.webaudio.MediaEvent>
    • Constructor Summary

      Constructors 
      Constructor Description
      BrowserAudioHandle​(PlatformAudio.BrowserAudioResource resource, org.teavm.jso.webaudio.AudioBufferSourceNode source, org.teavm.jso.webaudio.PannerNode panner, org.teavm.jso.webaudio.GainNode gain, float pitch)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end()  
      void gain​(float f)  
      void handleEvent​(org.teavm.jso.webaudio.MediaEvent evt)  
      void move​(float x, float y, float z)  
      void pause​(boolean setPaused)  
      void pitch​(float f)  
      void restart()  
      boolean shouldFree()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.teavm.jso.JSObject

        cast
    • Field Detail

      • source

        protected org.teavm.jso.webaudio.AudioBufferSourceNode source
      • panner

        protected final org.teavm.jso.webaudio.PannerNode panner
      • gain

        protected final org.teavm.jso.webaudio.GainNode gain
      • pitch

        protected float pitch
      • isPaused

        protected boolean isPaused
      • isEnded

        protected boolean isEnded
    • Constructor Detail

      • BrowserAudioHandle

        public BrowserAudioHandle​(PlatformAudio.BrowserAudioResource resource,
                                  org.teavm.jso.webaudio.AudioBufferSourceNode source,
                                  org.teavm.jso.webaudio.PannerNode panner,
                                  org.teavm.jso.webaudio.GainNode gain,
                                  float pitch)
    • Method Detail

      • pause

        public void pause​(boolean setPaused)
        Specified by:
        pause in interface IAudioHandle
      • move

        public void move​(float x,
                         float y,
                         float z)
        Specified by:
        move in interface IAudioHandle
      • pitch

        public void pitch​(float f)
        Specified by:
        pitch in interface IAudioHandle
      • gain

        public void gain​(float f)
        Specified by:
        gain in interface IAudioHandle
      • handleEvent

        public void handleEvent​(org.teavm.jso.webaudio.MediaEvent evt)
        Specified by:
        handleEvent in interface org.teavm.jso.dom.events.EventListener<org.teavm.jso.webaudio.MediaEvent>