Class PlatformAudio.BrowserAudioHandle
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.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>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.teavm.jso.webaudio.GainNodegainprotected booleanisEndedprotected booleanisPausedprotected org.teavm.jso.webaudio.PannerNodepannerprotected floatpitchprotected PlatformAudio.BrowserAudioResourceresourceprotected org.teavm.jso.webaudio.AudioBufferSourceNodesource
-
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 voidend()voidgain(float f)voidhandleEvent(org.teavm.jso.webaudio.MediaEvent evt)voidmove(float x, float y, float z)voidpause(boolean setPaused)voidpitch(float f)voidrestart()booleanshouldFree()
-
-
-
Field Detail
-
resource
protected final PlatformAudio.BrowserAudioResource resource
-
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:
pausein interfaceIAudioHandle
-
restart
public void restart()
- Specified by:
restartin interfaceIAudioHandle
-
move
public void move(float x, float y, float z)- Specified by:
movein interfaceIAudioHandle
-
pitch
public void pitch(float f)
- Specified by:
pitchin interfaceIAudioHandle
-
gain
public void gain(float f)
- Specified by:
gainin interfaceIAudioHandle
-
end
public void end()
- Specified by:
endin interfaceIAudioHandle
-
shouldFree
public boolean shouldFree()
- Specified by:
shouldFreein interfaceIAudioHandle
-
handleEvent
public void handleEvent(org.teavm.jso.webaudio.MediaEvent evt)
- Specified by:
handleEventin interfaceorg.teavm.jso.dom.events.EventListener<org.teavm.jso.webaudio.MediaEvent>
-
-