AudioSample

An AudioSample is a piece of audio that can be played back from your gadget with the AudioChip module.

To import an AudioSample, you must use OGG, WAV or MP3 files, and for best results they must be 44.1kHz and 16bit.

Currently, there's no way to create an AudioSample purely in-game, but audio generation is planned for the future.

Properties

Name string read only

The name of the asset.

Type string read only

String containing "AudioSample"

SamplesCount number read only

Channels number read only

Frequency number read only

Length number read only

Length of the AudioSample in seconds

Metadata {} read only

Table that contains the AudioSample's metadata, it can contain the following values:
* LongDescription
* Date
* Year
* TrackNumber
* TrackTotal
* DiscNumber
* DiscTotal
* Popularity
* SeriesPart
* Bitrate
* BitDepth
* SampleRate
* IsVariableBitRate
* Duration
* SeriesTitle
* SortTitle
* Title
* Artist
* Composer
* Comment
* Genre
* Album
* Group
* OriginalArtist
* Copyright
* OriginalAlbum
* Publisher
* PublishingDate
* AlbumArtist
* Conductor
* ProductId
* SortAlbum
* SortAlbumArtist
* SortArtist
* Description

Methods

IsValid( ) boolean

Returns true if the asset reference is still valid.
References can become invalid if the asset is unloaded.