readonly uuid: string;
The unique identifier of this asset.
readonly path: string;
The current path to the related .rogueAudio file.
readonly name: string;
The name of the asset.
This method creates an Audio object with the buffer information in the same instance of AudioAsset.
This method creates a PositionalAudio object with the buffer information in the same instance of AudioAsset.
static fromFile(filePath: string): Promise<AudioAsset>;
This static method of AudioAsset takes the path of a .rogueAudio file and returns an instance of AudioAsset. You should use this method, instead of instantiating the class manually.