mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
Fixed source.
This commit is contained in:
parent
635097f4d2
commit
935f589da7
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2014 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,10 +17,11 @@ package org.teavm.jso.dom.events;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface WheelEvent extends MouseEvent {
|
public interface WheelEvent extends MouseEvent {
|
||||||
|
int DOM_DELTA_PIXEL = 0;
|
||||||
|
int DOM_DELTA_LINE = 1;
|
||||||
|
int DOM_DELTA_PAGE = 2;
|
||||||
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
double getDeltaX();
|
double getDeltaX();
|
||||||
|
|
||||||
|
@ -31,5 +32,5 @@ public interface WheelEvent extends MouseEvent {
|
||||||
double getDeltaZ();
|
double getDeltaZ();
|
||||||
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
long getDeltaMode();
|
int getDeltaMode();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2014 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -15,9 +15,6 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.jso.dom.events;
|
package org.teavm.jso.dom.events;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface WheelEventTarget extends EventTarget {
|
public interface WheelEventTarget extends EventTarget {
|
||||||
default void listenWheel(EventListener<WheelEvent> listener) {
|
default void listenWheel(EventListener<WheelEvent> listener) {
|
||||||
addEventListener("wheel", listener);
|
addEventListener("wheel", listener);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -18,9 +18,6 @@ package org.teavm.jso.typedarrays;
|
||||||
import org.teavm.jso.JSBody;
|
import org.teavm.jso.JSBody;
|
||||||
import org.teavm.jso.JSMethod;
|
import org.teavm.jso.JSMethod;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public abstract class DataView extends ArrayBufferView {
|
public abstract class DataView extends ArrayBufferView {
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract byte getInt8(int byteOffset);
|
public abstract byte getInt8(int byteOffset);
|
||||||
|
@ -47,10 +44,10 @@ public abstract class DataView extends ArrayBufferView {
|
||||||
public abstract int getInt32(int byteOffset, boolean littleEndian);
|
public abstract int getInt32(int byteOffset, boolean littleEndian);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract long getUInt32(int byteOffset);
|
public abstract int getUInt32(int byteOffset);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract long getUInt32(int byteOffset, boolean littleEndian);
|
public abstract int getUInt32(int byteOffset, boolean littleEndian);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract float getFloat32(int byteOffset);
|
public abstract float getFloat32(int byteOffset);
|
||||||
|
@ -89,10 +86,10 @@ public abstract class DataView extends ArrayBufferView {
|
||||||
public abstract void setInt32(int byteOffset, int value, boolean littleEndian);
|
public abstract void setInt32(int byteOffset, int value, boolean littleEndian);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract void setUInt32(int byteOffset, long value);
|
public abstract void setUInt32(int byteOffset, int value);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract void setUInt32(int byteOffset, long value, boolean littleEndian);
|
public abstract void setUInt32(int byteOffset, int value, boolean littleEndian);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract void setFloat32(int byteOffset, float value);
|
public abstract void setFloat32(int byteOffset, float value);
|
||||||
|
|
|
@ -20,9 +20,6 @@ import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
import org.teavm.jso.typedarrays.Uint8Array;
|
import org.teavm.jso.typedarrays.Uint8Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AnalyserNode extends AudioNode {
|
public interface AnalyserNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
void setFftSize(int size);
|
void setFftSize(int size);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,9 +20,6 @@ import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioBuffer extends JSObject {
|
public interface AudioBuffer extends JSObject {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
float getSampleRate();
|
float getSampleRate();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioBufferSourceNode extends AudioNode {
|
public interface AudioBufferSourceNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioBuffer getBuffer();
|
AudioBuffer getBuffer();
|
||||||
|
@ -54,10 +51,10 @@ public interface AudioBufferSourceNode extends AudioNode {
|
||||||
void setLoopEnd(double end);
|
void setLoopEnd(double end);
|
||||||
|
|
||||||
@JSProperty("onended")
|
@JSProperty("onended")
|
||||||
void setOnEnded(EventListener ent);
|
void setOnEnded(EventListener<MediaEvent> ent);
|
||||||
|
|
||||||
@JSProperty("onended")
|
@JSProperty("onended")
|
||||||
EventListener getOnEnded();
|
EventListener<MediaEvent> getOnEnded();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void start(double when, double offset, double duration);
|
void start(double when, double offset, double duration);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -24,9 +24,6 @@ import org.teavm.jso.dom.html.HTMLMediaElement;
|
||||||
import org.teavm.jso.typedarrays.ArrayBuffer;
|
import org.teavm.jso.typedarrays.ArrayBuffer;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public abstract class AudioContext implements JSObject {
|
public abstract class AudioContext implements JSObject {
|
||||||
String STATE_SUSPENDED = "suspended";
|
String STATE_SUSPENDED = "suspended";
|
||||||
String STATE_RUNNING = "running";
|
String STATE_RUNNING = "running";
|
||||||
|
@ -48,10 +45,10 @@ public abstract class AudioContext implements JSObject {
|
||||||
public abstract String getState();
|
public abstract String getState();
|
||||||
|
|
||||||
@JSProperty("onstatechange")
|
@JSProperty("onstatechange")
|
||||||
public abstract void setOnStateChange(EventListener listener);
|
public abstract void setOnStateChange(EventListener<MediaEvent> listener);
|
||||||
|
|
||||||
@JSProperty("onstatechange")
|
@JSProperty("onstatechange")
|
||||||
public abstract EventListener getOnStateChange();
|
public abstract EventListener<MediaEvent> getOnStateChange();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract void suspend();
|
public abstract void suspend();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioDestinationNode extends AudioNode {
|
public interface AudioDestinationNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
int getMaxChannelCount();
|
int getMaxChannelCount();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioListener extends JSObject {
|
public interface AudioListener extends JSObject {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
void setDopplerFactor(float value);
|
void setDopplerFactor(float value);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioNode extends JSObject {
|
public interface AudioNode extends JSObject {
|
||||||
String CHANNEL_COUNT_MODE_MAX = "max";
|
String CHANNEL_COUNT_MODE_MAX = "max";
|
||||||
String CHANNEL_COUNT_MODE_CLAMPED_MAX = "clamped-max";
|
String CHANNEL_COUNT_MODE_CLAMPED_MAX = "clamped-max";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,9 +20,6 @@ import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioParam extends JSObject {
|
public interface AudioParam extends JSObject {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
float getValue();
|
float getValue();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,9 +20,6 @@ import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.Event;
|
import org.teavm.jso.dom.events.Event;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioProcessEvent extends Event {
|
public interface AudioProcessEvent extends Event {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
double getPlaybackTime();
|
double getPlaybackTime();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -16,12 +16,8 @@
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.Event;
|
|
||||||
|
|
||||||
/**
|
public interface AudioProcessingEvent extends MediaEvent {
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioProcessingEvent extends Event {
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
double getPlaybackTime();
|
double getPlaybackTime();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,33 +20,33 @@ import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioWorker extends JSObject {
|
public interface AudioWorker extends JSObject {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioWorkerParamDescriptor[] getParameters();
|
AudioWorkerParamDescriptor[] getParameters();
|
||||||
|
|
||||||
@JSProperty(value = "onmessage")
|
@JSProperty(value = "onmessage")
|
||||||
void setOnMessage(EventListener event);
|
void setOnMessage(EventListener<MediaEvent> event);
|
||||||
|
|
||||||
@JSProperty(value = "onmessage")
|
@JSProperty(value = "onmessage")
|
||||||
EventListener getOnMessage();
|
EventListener<MediaEvent> getOnMessage();
|
||||||
|
|
||||||
@JSProperty(value = "onloaded")
|
@JSProperty(value = "onloaded")
|
||||||
void setOnLoaded(EventListener event);
|
void setOnLoaded(EventListener<MediaEvent> event);
|
||||||
|
|
||||||
@JSProperty(value = "onloaded")
|
@JSProperty(value = "onloaded")
|
||||||
EventListener getOnLoaded();
|
EventListener<MediaEvent> getOnLoaded();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void terminate();
|
void terminate();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void postMessage(Object message, Object... transfer);
|
void postMessage(JSObject message, JSObject[] transfer);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void postMessage(Object message);
|
void postMessage(JSObject message, JSObject transfer);
|
||||||
|
|
||||||
|
@JSMethod
|
||||||
|
void postMessage(JSObject message);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
AudioWorkerNode createNode(int numberOfInputs, int numberOfOutputs);
|
AudioWorkerNode createNode(int numberOfInputs, int numberOfOutputs);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -20,24 +20,21 @@ import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioWorkerGlobalScope extends JSObject {
|
public interface AudioWorkerGlobalScope extends JSObject {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
float getSampleRate();
|
float getSampleRate();
|
||||||
|
|
||||||
@JSProperty("onaudioprocess")
|
@JSProperty("onaudioprocess")
|
||||||
void setOnAudioProcess(EventListener event);
|
void setOnAudioProcess(EventListener<MediaEvent> event);
|
||||||
|
|
||||||
@JSProperty("onaudioprocess")
|
@JSProperty("onaudioprocess")
|
||||||
EventListener getOnAudioProcess();
|
EventListener<MediaEvent> getOnAudioProcess();
|
||||||
|
|
||||||
@JSProperty("onnodecreate")
|
@JSProperty("onnodecreate")
|
||||||
void setOnNodeCreate(EventListener event);
|
void setOnNodeCreate(EventListener<MediaEvent> event);
|
||||||
|
|
||||||
@JSProperty("onnodecreate")
|
@JSProperty("onnodecreate")
|
||||||
EventListener getOnNodeCreate();
|
EventListener<MediaEvent> getOnNodeCreate();
|
||||||
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioWorkerParamDescriptor[] getParameters();
|
AudioWorkerParamDescriptor[] getParameters();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -16,23 +16,24 @@
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSMethod;
|
import org.teavm.jso.JSMethod;
|
||||||
|
import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioWorkerNode extends AudioNode {
|
public interface AudioWorkerNode extends AudioNode {
|
||||||
@JSProperty("onmessage")
|
@JSProperty("onmessage")
|
||||||
void setOnMessage(EventListener event);
|
void setOnMessage(EventListener<MediaEvent> event);
|
||||||
|
|
||||||
@JSProperty("onmessage")
|
@JSProperty("onmessage")
|
||||||
EventListener getOnMessage();
|
EventListener<MediaEvent> getOnMessage();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void postMessage(Object message, Object... transfer);
|
void postMessage(JSObject message, JSObject[] transfer);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void postMessage(Object message);
|
void postMessage(JSObject message, JSObject transfer);
|
||||||
|
|
||||||
|
@JSMethod
|
||||||
|
void postMessage(JSObject message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,12 +17,8 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.core.JSArray;
|
import org.teavm.jso.core.JSArray;
|
||||||
import org.teavm.jso.dom.events.Event;
|
|
||||||
|
|
||||||
/**
|
public interface AudioWorkerNodeCreationEvent extends MediaEvent {
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioWorkerNodeCreationEvent extends Event {
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioWorkerNodeProcessor getNode();
|
AudioWorkerNodeProcessor getNode();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -16,23 +16,25 @@
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSMethod;
|
import org.teavm.jso.JSMethod;
|
||||||
|
import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
import org.teavm.jso.dom.events.EventTarget;
|
import org.teavm.jso.dom.events.EventTarget;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioWorkerNodeProcessor extends EventTarget {
|
public interface AudioWorkerNodeProcessor extends EventTarget {
|
||||||
@JSProperty("onmessage")
|
@JSProperty("onmessage")
|
||||||
void setOnMessage(EventListener event);
|
void setOnMessage(EventListener<MediaEvent> event);
|
||||||
|
|
||||||
@JSProperty("onmessage")
|
@JSProperty("onmessage")
|
||||||
EventListener getOnMessage();
|
EventListener<MediaEvent> getOnMessage();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void postMessage(Object message, Object... transfer);
|
void postMessage(JSObject message, JSObject[] transfer);
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void postMessage(Object message);
|
void postMessage(JSObject message, JSObject transfer);
|
||||||
|
|
||||||
|
@JSMethod
|
||||||
|
void postMessage(JSObject message);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface AudioWorkerParamDescriptor extends JSObject {
|
public interface AudioWorkerParamDescriptor extends JSObject {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
String getName();
|
String getName();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface BiquadFilterNode extends AudioNode {
|
public interface BiquadFilterNode extends AudioNode {
|
||||||
String TYPE_LOW_PASS = "lowpass";
|
String TYPE_LOW_PASS = "lowpass";
|
||||||
String TYPE_LOW_SHELF = "lowshelf";
|
String TYPE_LOW_SHELF = "lowshelf";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -15,8 +15,5 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface ChannelMergerNode extends AudioNode {
|
public interface ChannelMergerNode extends AudioNode {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -15,8 +15,5 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface ChannelSplitterNode extends AudioNode {
|
public interface ChannelSplitterNode extends AudioNode {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface ConvolverNode extends AudioNode {
|
public interface ConvolverNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
void setBuffer(AudioBuffer buffer);
|
void setBuffer(AudioBuffer buffer);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +19,6 @@ import org.teavm.jso.JSFunctor;
|
||||||
import org.teavm.jso.JSMethod;
|
import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@JSFunctor
|
@JSFunctor
|
||||||
public interface DecodeErrorCallback extends JSObject {
|
public interface DecodeErrorCallback extends JSObject {
|
||||||
@JSMethod
|
@JSMethod
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +19,6 @@ import org.teavm.jso.JSFunctor;
|
||||||
import org.teavm.jso.JSMethod;
|
import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@JSFunctor
|
@JSFunctor
|
||||||
public interface DecodeSuccessCallback extends JSObject {
|
public interface DecodeSuccessCallback extends JSObject {
|
||||||
@JSMethod
|
@JSMethod
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface DelayNode extends AudioNode {
|
public interface DelayNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioParam getDelayTime();
|
AudioParam getDelayTime();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface DynamicsCompressorNode extends AudioNode {
|
public interface DynamicsCompressorNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioParam getThreshold();
|
AudioParam getThreshold();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface GainNode extends AudioNode {
|
public interface GainNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioParam getGain();
|
AudioParam getGain();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
|
||||||
import org.teavm.jso.JSMethod;
|
import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface IIRFilterNode extends AudioNode {
|
public interface IIRFilterNode extends AudioNode {
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse);
|
void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -15,8 +15,5 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface MediaElementAudioSourceNode extends AudioNode {
|
public interface MediaElementAudioSourceNode extends AudioNode {
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2016 Alexey Andreev.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
|
import org.teavm.jso.dom.events.Event;
|
||||||
|
|
||||||
|
public interface MediaEvent extends Event {
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface MediaStream extends JSObject {
|
public interface MediaStream extends JSObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface MediaStreamAudioDestinationNode extends AudioNode {
|
public interface MediaStreamAudioDestinationNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
MediaStream getStream();
|
MediaStream getStream();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -15,9 +15,6 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface MediaStreamAudioSourceNode extends AudioNode {
|
public interface MediaStreamAudioSourceNode extends AudioNode {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -16,12 +16,8 @@
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.Event;
|
|
||||||
|
|
||||||
/**
|
public interface OfflineAudioCompletionEvent extends MediaEvent {
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface OfflineAudioCompletionEvent extends Event {
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioBuffer getRenderedBuffer();
|
AudioBuffer getRenderedBuffer();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,15 +19,12 @@ import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public abstract class OfflineAudioContext extends AudioContext {
|
public abstract class OfflineAudioContext extends AudioContext {
|
||||||
@JSProperty("oncomplete")
|
@JSProperty("oncomplete")
|
||||||
public abstract void setOnComplete(EventListener event);
|
public abstract void setOnComplete(EventListener<OfflineAudioCompletionEvent> event);
|
||||||
|
|
||||||
@JSProperty("oncomplete")
|
@JSProperty("oncomplete")
|
||||||
public abstract EventListener getOnComplete();
|
public abstract EventListener<OfflineAudioCompletionEvent> getOnComplete();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
public abstract AudioBuffer startRendering();
|
public abstract AudioBuffer startRendering();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface OscillatorNode extends AudioNode {
|
public interface OscillatorNode extends AudioNode {
|
||||||
String TYPE_SINE = "sine";
|
String TYPE_SINE = "sine";
|
||||||
String TYPE_SQUARE = "square";
|
String TYPE_SQUARE = "square";
|
||||||
|
@ -42,10 +39,10 @@ public interface OscillatorNode extends AudioNode {
|
||||||
AudioParam getDetune();
|
AudioParam getDetune();
|
||||||
|
|
||||||
@JSProperty("onended")
|
@JSProperty("onended")
|
||||||
void setOnEnded(EventListener listener);
|
void setOnEnded(EventListener<MediaEvent> listener);
|
||||||
|
|
||||||
@JSProperty("onended")
|
@JSProperty("onended")
|
||||||
EventListener getOnEnded();
|
EventListener<MediaEvent> getOnEnded();
|
||||||
|
|
||||||
@JSMethod
|
@JSMethod
|
||||||
void start(double when);
|
void start(double when);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
|
||||||
import org.teavm.jso.JSMethod;
|
import org.teavm.jso.JSMethod;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface PannerNode extends AudioNode {
|
public interface PannerNode extends AudioNode {
|
||||||
String MODEL_EQUALPOWER = "equalpower";
|
String MODEL_EQUALPOWER = "equalpower";
|
||||||
String MODEL_HRTF = "HRTF";
|
String MODEL_HRTF = "HRTF";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,8 +17,5 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface PeriodicWave extends JSObject {
|
public interface PeriodicWave extends JSObject {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
|
||||||
import org.teavm.jso.JSObject;
|
import org.teavm.jso.JSObject;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface PeriodicWaveConstraints extends JSObject {
|
public interface PeriodicWaveConstraints extends JSObject {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
void setDisableNormalization(boolean value);
|
void setDisableNormalization(boolean value);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -18,15 +18,12 @@ package org.teavm.jso.webaudio;
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.dom.events.EventListener;
|
import org.teavm.jso.dom.events.EventListener;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface ScriptProcessorNode extends AudioNode {
|
public interface ScriptProcessorNode extends AudioNode {
|
||||||
@JSProperty("onaudioprocess")
|
@JSProperty("onaudioprocess")
|
||||||
EventListener getOnAudioProcess();
|
EventListener<AudioProcessingEvent> getOnAudioProcess();
|
||||||
|
|
||||||
@JSProperty("onaudioprocess")
|
@JSProperty("onaudioprocess")
|
||||||
void setOnAudioProcess(EventListener event);
|
void setOnAudioProcess(EventListener<AudioProcessingEvent> event);
|
||||||
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
int getBufferSize();
|
int getBufferSize();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface StereoPannerNode extends AudioNode {
|
public interface StereoPannerNode extends AudioNode {
|
||||||
@JSProperty
|
@JSProperty
|
||||||
AudioParam getPan();
|
AudioParam getPan();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2015 Alexey Andreev.
|
* Copyright 2016 Alexey Andreev.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -15,13 +15,9 @@
|
||||||
*/
|
*/
|
||||||
package org.teavm.jso.webaudio;
|
package org.teavm.jso.webaudio;
|
||||||
|
|
||||||
|
|
||||||
import org.teavm.jso.JSProperty;
|
import org.teavm.jso.JSProperty;
|
||||||
import org.teavm.jso.typedarrays.Float32Array;
|
import org.teavm.jso.typedarrays.Float32Array;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface WaveShaperNode extends AudioNode {
|
public interface WaveShaperNode extends AudioNode {
|
||||||
String OVERSAMPLE_NONE = "none";
|
String OVERSAMPLE_NONE = "none";
|
||||||
String OVERSAMPLE_2X = "2x";
|
String OVERSAMPLE_2X = "2x";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user