CreateAudioResourceOptions
Options that are set when creating a new audio resource.
CreateAudioResourceOptions
Options that are set when creating a new audio resource.
| Property | Type | Value | Description | 
|---|---|---|---|
| inlineVolume | boolean | N/A | Whether or not inline volume should be enabled. If enabled, you will be able to change the volume of the stream on-the-fly. However, this also increases the performance cost of playback. Defaults to false. | 
| inputType | StreamType | N/A | The type of the input stream. Defaults to StreamType.Arbitrary. | 
| metadata | Metadata | N/A | Optional metadata that can be attached to the resource (e.g. track title, random id). This is useful for identification purposes when the resource is passed around in events. See AudioResource.metadata | 
| silencePaddingFrames | number | N/A | The number of silence frames to append to the end of the resource's audio stream, to prevent interpolation glitches. Defaults to 5. |