Fixed source.

This commit is contained in:
Wolftein 2016-06-23 18:57:59 -03:00
parent 635097f4d2
commit 935f589da7
43 changed files with 114 additions and 207 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2014 Alexey Andreev.
* 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.
@ -17,10 +17,11 @@ package org.teavm.jso.dom.events;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface WheelEvent extends MouseEvent {
int DOM_DELTA_PIXEL = 0;
int DOM_DELTA_LINE = 1;
int DOM_DELTA_PAGE = 2;
@JSProperty
double getDeltaX();
@ -31,5 +32,5 @@ public interface WheelEvent extends MouseEvent {
double getDeltaZ();
@JSProperty
long getDeltaMode();
int getDeltaMode();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2014 Alexey Andreev.
* 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.
@ -15,9 +15,6 @@
*/
package org.teavm.jso.dom.events;
/**
*
*/
public interface WheelEventTarget extends EventTarget {
default void listenWheel(EventListener<WheelEvent> listener) {
addEventListener("wheel", listener);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -18,9 +18,6 @@ package org.teavm.jso.typedarrays;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSMethod;
/**
*
*/
public abstract class DataView extends ArrayBufferView {
@JSMethod
public abstract byte getInt8(int byteOffset);
@ -47,10 +44,10 @@ public abstract class DataView extends ArrayBufferView {
public abstract int getInt32(int byteOffset, boolean littleEndian);
@JSMethod
public abstract long getUInt32(int byteOffset);
public abstract int getUInt32(int byteOffset);
@JSMethod
public abstract long getUInt32(int byteOffset, boolean littleEndian);
public abstract int getUInt32(int byteOffset, boolean littleEndian);
@JSMethod
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);
@JSMethod
public abstract void setUInt32(int byteOffset, long value);
public abstract void setUInt32(int byteOffset, int value);
@JSMethod
public abstract void setUInt32(int byteOffset, long value, boolean littleEndian);
public abstract void setUInt32(int byteOffset, int value, boolean littleEndian);
@JSMethod
public abstract void setFloat32(int byteOffset, float value);

View File

@ -20,9 +20,6 @@ import org.teavm.jso.JSProperty;
import org.teavm.jso.typedarrays.Float32Array;
import org.teavm.jso.typedarrays.Uint8Array;
/**
*
*/
public interface AnalyserNode extends AudioNode {
@JSProperty
void setFftSize(int size);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -20,9 +20,6 @@ import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
import org.teavm.jso.typedarrays.Float32Array;
/**
*
*/
public interface AudioBuffer extends JSObject {
@JSProperty
float getSampleRate();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
/**
*
*/
public interface AudioBufferSourceNode extends AudioNode {
@JSProperty
AudioBuffer getBuffer();
@ -54,10 +51,10 @@ public interface AudioBufferSourceNode extends AudioNode {
void setLoopEnd(double end);
@JSProperty("onended")
void setOnEnded(EventListener ent);
void setOnEnded(EventListener<MediaEvent> ent);
@JSProperty("onended")
EventListener getOnEnded();
EventListener<MediaEvent> getOnEnded();
@JSMethod
void start(double when, double offset, double duration);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -24,9 +24,6 @@ import org.teavm.jso.dom.html.HTMLMediaElement;
import org.teavm.jso.typedarrays.ArrayBuffer;
import org.teavm.jso.typedarrays.Float32Array;
/**
*
*/
public abstract class AudioContext implements JSObject {
String STATE_SUSPENDED = "suspended";
String STATE_RUNNING = "running";
@ -48,10 +45,10 @@ public abstract class AudioContext implements JSObject {
public abstract String getState();
@JSProperty("onstatechange")
public abstract void setOnStateChange(EventListener listener);
public abstract void setOnStateChange(EventListener<MediaEvent> listener);
@JSProperty("onstatechange")
public abstract EventListener getOnStateChange();
public abstract EventListener<MediaEvent> getOnStateChange();
@JSMethod
public abstract void suspend();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface AudioDestinationNode extends AudioNode {
@JSProperty
int getMaxChannelCount();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface AudioListener extends JSObject {
@JSProperty
void setDopplerFactor(float value);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface AudioNode extends JSObject {
String CHANNEL_COUNT_MODE_MAX = "max";
String CHANNEL_COUNT_MODE_CLAMPED_MAX = "clamped-max";

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -20,9 +20,6 @@ import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
import org.teavm.jso.typedarrays.Float32Array;
/**
*
*/
public interface AudioParam extends JSObject {
@JSProperty
float getValue();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -20,9 +20,6 @@ import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.Event;
import org.teavm.jso.typedarrays.Float32Array;
/**
*
*/
public interface AudioProcessEvent extends Event {
@JSProperty
double getPlaybackTime();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -16,12 +16,8 @@
package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.Event;
/**
*
*/
public interface AudioProcessingEvent extends Event {
public interface AudioProcessingEvent extends MediaEvent {
@JSProperty
double getPlaybackTime();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -20,33 +20,33 @@ import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
/**
*
*/
public interface AudioWorker extends JSObject {
@JSProperty
AudioWorkerParamDescriptor[] getParameters();
@JSProperty(value = "onmessage")
void setOnMessage(EventListener event);
void setOnMessage(EventListener<MediaEvent> event);
@JSProperty(value = "onmessage")
EventListener getOnMessage();
EventListener<MediaEvent> getOnMessage();
@JSProperty(value = "onloaded")
void setOnLoaded(EventListener event);
void setOnLoaded(EventListener<MediaEvent> event);
@JSProperty(value = "onloaded")
EventListener getOnLoaded();
EventListener<MediaEvent> getOnLoaded();
@JSMethod
void terminate();
@JSMethod
void postMessage(Object message, Object... transfer);
void postMessage(JSObject message, JSObject[] transfer);
@JSMethod
void postMessage(Object message);
void postMessage(JSObject message, JSObject transfer);
@JSMethod
void postMessage(JSObject message);
@JSMethod
AudioWorkerNode createNode(int numberOfInputs, int numberOfOutputs);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -20,24 +20,21 @@ import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
/**
*
*/
public interface AudioWorkerGlobalScope extends JSObject {
@JSProperty
float getSampleRate();
@JSProperty("onaudioprocess")
void setOnAudioProcess(EventListener event);
void setOnAudioProcess(EventListener<MediaEvent> event);
@JSProperty("onaudioprocess")
EventListener getOnAudioProcess();
EventListener<MediaEvent> getOnAudioProcess();
@JSProperty("onnodecreate")
void setOnNodeCreate(EventListener event);
void setOnNodeCreate(EventListener<MediaEvent> event);
@JSProperty("onnodecreate")
EventListener getOnNodeCreate();
EventListener<MediaEvent> getOnNodeCreate();
@JSProperty
AudioWorkerParamDescriptor[] getParameters();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -16,23 +16,24 @@
package org.teavm.jso.webaudio;
import org.teavm.jso.JSMethod;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
/**
*
*/
public interface AudioWorkerNode extends AudioNode {
@JSProperty("onmessage")
void setOnMessage(EventListener event);
void setOnMessage(EventListener<MediaEvent> event);
@JSProperty("onmessage")
EventListener getOnMessage();
EventListener<MediaEvent> getOnMessage();
@JSMethod
void postMessage(Object message, Object... transfer);
void postMessage(JSObject message, JSObject[] transfer);
@JSMethod
void postMessage(Object message);
void postMessage(JSObject message, JSObject transfer);
@JSMethod
void postMessage(JSObject message);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,12 +17,8 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
import org.teavm.jso.core.JSArray;
import org.teavm.jso.dom.events.Event;
/**
*
*/
public interface AudioWorkerNodeCreationEvent extends Event {
public interface AudioWorkerNodeCreationEvent extends MediaEvent {
@JSProperty
AudioWorkerNodeProcessor getNode();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -16,23 +16,25 @@
package org.teavm.jso.webaudio;
import org.teavm.jso.JSMethod;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
import org.teavm.jso.dom.events.EventTarget;
/**
*
*/
public interface AudioWorkerNodeProcessor extends EventTarget {
@JSProperty("onmessage")
void setOnMessage(EventListener event);
void setOnMessage(EventListener<MediaEvent> event);
@JSProperty("onmessage")
EventListener getOnMessage();
EventListener<MediaEvent> getOnMessage();
@JSMethod
void postMessage(Object message, Object... transfer);
void postMessage(JSObject message, JSObject[] transfer);
@JSMethod
void postMessage(Object message);
void postMessage(JSObject message, JSObject transfer);
@JSMethod
void postMessage(JSObject message);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface AudioWorkerParamDescriptor extends JSObject {
@JSProperty
String getName();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
import org.teavm.jso.JSProperty;
import org.teavm.jso.typedarrays.Float32Array;
/**
*
*/
public interface BiquadFilterNode extends AudioNode {
String TYPE_LOW_PASS = "lowpass";
String TYPE_LOW_SHELF = "lowshelf";

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -15,8 +15,5 @@
*/
package org.teavm.jso.webaudio;
/**
*
*/
public interface ChannelMergerNode extends AudioNode {
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -15,8 +15,5 @@
*/
package org.teavm.jso.webaudio;
/**
*
*/
public interface ChannelSplitterNode extends AudioNode {
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface ConvolverNode extends AudioNode {
@JSProperty
void setBuffer(AudioBuffer buffer);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,9 +19,6 @@ import org.teavm.jso.JSFunctor;
import org.teavm.jso.JSMethod;
import org.teavm.jso.JSObject;
/**
*
*/
@JSFunctor
public interface DecodeErrorCallback extends JSObject {
@JSMethod

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,9 +19,6 @@ import org.teavm.jso.JSFunctor;
import org.teavm.jso.JSMethod;
import org.teavm.jso.JSObject;
/**
*
*/
@JSFunctor
public interface DecodeSuccessCallback extends JSObject {
@JSMethod

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface DelayNode extends AudioNode {
@JSProperty
AudioParam getDelayTime();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface DynamicsCompressorNode extends AudioNode {
@JSProperty
AudioParam getThreshold();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface GainNode extends AudioNode {
@JSProperty
AudioParam getGain();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSMethod;
import org.teavm.jso.typedarrays.Float32Array;
/**
*
*/
public interface IIRFilterNode extends AudioNode {
@JSMethod
void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -15,8 +15,5 @@
*/
package org.teavm.jso.webaudio;
/**
*
*/
public interface MediaElementAudioSourceNode extends AudioNode {
}

View File

@ -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 {
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSObject;
/**
*
*/
public interface MediaStream extends JSObject {
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface MediaStreamAudioDestinationNode extends AudioNode {
@JSProperty
MediaStream getStream();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -15,9 +15,6 @@
*/
package org.teavm.jso.webaudio;
/**
*
*/
public interface MediaStreamAudioSourceNode extends AudioNode {
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -16,12 +16,8 @@
package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.Event;
/**
*
*/
public interface OfflineAudioCompletionEvent extends Event {
public interface OfflineAudioCompletionEvent extends MediaEvent {
@JSProperty
AudioBuffer getRenderedBuffer();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,15 +19,12 @@ import org.teavm.jso.JSMethod;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
/**
*
*/
public abstract class OfflineAudioContext extends AudioContext {
@JSProperty("oncomplete")
public abstract void setOnComplete(EventListener event);
public abstract void setOnComplete(EventListener<OfflineAudioCompletionEvent> event);
@JSProperty("oncomplete")
public abstract EventListener getOnComplete();
public abstract EventListener<OfflineAudioCompletionEvent> getOnComplete();
@JSMethod
public abstract AudioBuffer startRendering();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -19,9 +19,6 @@ import org.teavm.jso.JSMethod;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
/**
*
*/
public interface OscillatorNode extends AudioNode {
String TYPE_SINE = "sine";
String TYPE_SQUARE = "square";
@ -42,10 +39,10 @@ public interface OscillatorNode extends AudioNode {
AudioParam getDetune();
@JSProperty("onended")
void setOnEnded(EventListener listener);
void setOnEnded(EventListener<MediaEvent> listener);
@JSProperty("onended")
EventListener getOnEnded();
EventListener<MediaEvent> getOnEnded();
@JSMethod
void start(double when);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSMethod;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface PannerNode extends AudioNode {
String MODEL_EQUALPOWER = "equalpower";
String MODEL_HRTF = "HRTF";

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,8 +17,5 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSObject;
/**
*
*/
public interface PeriodicWave extends JSObject {
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -18,9 +18,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface PeriodicWaveConstraints extends JSObject {
@JSProperty
void setDisableNormalization(boolean value);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -18,15 +18,12 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
import org.teavm.jso.dom.events.EventListener;
/**
*
*/
public interface ScriptProcessorNode extends AudioNode {
@JSProperty("onaudioprocess")
EventListener getOnAudioProcess();
EventListener<AudioProcessingEvent> getOnAudioProcess();
@JSProperty("onaudioprocess")
void setOnAudioProcess(EventListener event);
void setOnAudioProcess(EventListener<AudioProcessingEvent> event);
@JSProperty
int getBufferSize();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -17,9 +17,6 @@ package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
/**
*
*/
public interface StereoPannerNode extends AudioNode {
@JSProperty
AudioParam getPan();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2015 Alexey Andreev.
* 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.
@ -15,13 +15,9 @@
*/
package org.teavm.jso.webaudio;
import org.teavm.jso.JSProperty;
import org.teavm.jso.typedarrays.Float32Array;
/**
*
*/
public interface WaveShaperNode extends AudioNode {
String OVERSAMPLE_NONE = "none";
String OVERSAMPLE_2X = "2x";