All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.web.webaudio.ConstantSourceNode Maven / Gradle / Ivy

package js.web.webaudio;

import js.web.dom.AddEventListenerOptions;
import js.web.dom.Event;
import js.web.dom.EventListener;
import js.web.dom.EventListenerOptions;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;


public interface ConstantSourceNode extends AudioScheduledSourceNode {
    @JSBody(script = "return ConstantSourceNode.prototype")
    static ConstantSourceNode prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = {"context", "options"}, script = "return new ConstantSourceNode(context, options)")
    static ConstantSourceNode create(BaseAudioContext context, ConstantSourceOptions options) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "context", script = "return new ConstantSourceNode(context)")
    static ConstantSourceNode create(BaseAudioContext context) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSProperty
    AudioParam getOffset();

    default void addEndedEventListener(EventListener listener, AddEventListenerOptions options) {
        addEventListener("ended", listener, options);
    }

    default void addEndedEventListener(EventListener listener, boolean options) {
        addEventListener("ended", listener, options);
    }

    default void addEndedEventListener(EventListener listener) {
        addEventListener("ended", listener);
    }

    default void removeEndedEventListener(EventListener listener, EventListenerOptions options) {
        removeEventListener("ended", listener, options);
    }

    default void removeEndedEventListener(EventListener listener, boolean options) {
        removeEventListener("ended", listener, options);
    }

    default void removeEndedEventListener(EventListener listener) {
        removeEventListener("ended", listener);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy