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.GainNode
gain
protected boolean
isEnded
protected boolean
isPaused
protected org.teavm.jso.webaudio.PannerNode
panner
protected float
pitch
protected PlatformAudio.BrowserAudioResource
resource
protected org.teavm.jso.webaudio.AudioBufferSourceNode
source
-
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()
-
-
-
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:
pause
in interfaceIAudioHandle
-
restart
public void restart()
- Specified by:
restart
in interfaceIAudioHandle
-
move
public void move(float x, float y, float z)
- Specified by:
move
in interfaceIAudioHandle
-
pitch
public void pitch(float f)
- Specified by:
pitch
in interfaceIAudioHandle
-
gain
public void gain(float f)
- Specified by:
gain
in interfaceIAudioHandle
-
end
public void end()
- Specified by:
end
in interfaceIAudioHandle
-
shouldFree
public boolean shouldFree()
- Specified by:
shouldFree
in interfaceIAudioHandle
-
handleEvent
public void handleEvent(org.teavm.jso.webaudio.MediaEvent evt)
- Specified by:
handleEvent
in interfaceorg.teavm.jso.dom.events.EventListener<org.teavm.jso.webaudio.MediaEvent>
-
-