UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

32 lines (31 loc) 866 B
/** * The shape of the audio ramp used to set an audio parameter's value, such as a sound's volume. */ export declare enum AudioParameterRampShape { /** * The ramp is linear. */ Linear = "linear", /** * The ramp is exponential. */ Exponential = "exponential", /** * The ramp is logarithmic. */ Logarithmic = "logarithmic" } /** * Options for ramping an audio parameter's value. */ export interface IAudioParameterRampOptions { /** * The ramp time, in seconds. Must be greater than 0. Defaults to 0.01 seconds. * The audio parameter's value will reach the target value at the end of the duration. */ duration: number; /** * The shape of the ramp to use for the parameter change. Defaults to {@link AudioParameterRampShape.Linear}. */ shape: AudioParameterRampShape; }