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

info.laht.threekt.audio.PositionalAudio.kt Maven / Gradle / Ivy

The newest version!
@file:JsQualifier("THREE")

package info.laht.threekt.audio

/**
 * Create a positional audio object.
 *
 * This uses the Web Audio API.
 */
open external class PositionalAudio(
        listener: AudioListener
) : Audio {

    /**
     * The PositionalAudio's PannerNode.
     */
    var panner: dynamic

    /**
     * Returns the panner.
     */
    override fun getOutput(): dynamic

    /**
     * Returns the value of panner.refDistance.
     */
    fun getRefDistance (): Double

    /**
     * Sets the value of panner.refDistance.
     */
    fun setRefDistance ( value: Number )

    /**
     * Returns the value of panner.rolloffFactor.
     */
    fun getRolloffFactor (): Double

    /**
     * Sets the value of panner.rolloffFactor.
     */
    fun setRolloffFactor ( value: Number )

    /**
     * Returns the value of panner.distanceModel.
     */
    fun getDistanceModel () : String

    /**
     * Sets the value of panner.distanceModel.
     */
    fun setDistanceModel ( value: String )

    /**
     * Returns the value of panner.maxDistance.
     */
    fun getMaxDistance () : Double

    /**
     * Sets the value of panner.maxDistance.
     */
    fun setMaxDistance ( value: Number )
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy