Class PlatformAudio
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.PlatformAudio
-
public class PlatformAudio extends java.lang.Object
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PlatformAudio.BrowserAudioHandle
protected static class
PlatformAudio.BrowserAudioResource
-
Constructor Summary
Constructors Constructor Description PlatformAudio()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
available()
static IAudioHandle
beginPlayback(IAudioResource track, float x, float y, float z, float volume, float pitch)
static IAudioHandle
beginPlaybackStatic(IAudioResource track, float volume, float pitch)
static void
clearAudioCache()
static org.teavm.jso.webaudio.AudioBuffer
decodeAudioAsync(org.teavm.jso.typedarrays.ArrayBuffer buffer, java.lang.String errorFileName)
protected static org.teavm.jso.webaudio.MediaStream
getRecStream()
protected static void
initRecDest()
static IAudioResource
loadAudioData(java.lang.String filename, boolean holdInCache)
static void
setListener(float x, float y, float z, float pitchDegrees, float yawDegrees)
static void
setMicVol(float vol)
-
-
-
Method Detail
-
setMicVol
public static void setMicVol(float vol)
-
initRecDest
protected static void initRecDest()
-
getRecStream
protected static org.teavm.jso.webaudio.MediaStream getRecStream()
-
loadAudioData
public static IAudioResource loadAudioData(java.lang.String filename, boolean holdInCache)
-
decodeAudioAsync
public static org.teavm.jso.webaudio.AudioBuffer decodeAudioAsync(org.teavm.jso.typedarrays.ArrayBuffer buffer, java.lang.String errorFileName)
-
clearAudioCache
public static void clearAudioCache()
-
available
public static boolean available()
-
beginPlayback
public static IAudioHandle beginPlayback(IAudioResource track, float x, float y, float z, float volume, float pitch)
-
beginPlaybackStatic
public static IAudioHandle beginPlaybackStatic(IAudioResource track, float volume, float pitch)
-
setListener
public static void setListener(float x, float y, float z, float pitchDegrees, float yawDegrees)
-
-