Scripting API
Scripting API
AudioImport
Record in Abyss.Core, from Abyss.Core.
How a sound clip is kept, as its import settings say: what its inspector's settings set, and what the editor tells the world it plays a project in, and the pack it is built into.
public record AudioImportRemarks
Kept in the clip's sidecar with its other settings, in its import block: "loadType": "Streaming", and how it is encoded as it is imported — "compression": "Vorbis", "quality": 40, "sampleRate": 22050, "forceToMono": true. Each only where it is not what a clip nobody configured has, so a clip nobody configured has the sidecar it always had.
Constructors
AudioImport
public AudioImport(AudioLoadType LoadType, AudioEncoding Encoding)How a sound clip is kept, as its import settings say: what its inspector's settings set, and what the editor tells the world it plays a project in, and the pack it is built into.
Parameters
LoadType: How it is kept once loaded.Encoding: How it is encoded as it is imported.
Kept in the clip's sidecar with its other settings, in its import block: "loadType": "Streaming", and how it is encoded as it is imported — "compression": "Vorbis", "quality": 40, "sampleRate": 22050, "forceToMono": true. Each only where it is not what a clip nobody configured has, so a clip nobody configured has the sidecar it always had.
AudioImport
public AudioImport(AudioLoadType loadType)A clip kept as loadType says, played as its file encodes it.
Parameters
loadType
Properties
LoadType
public AudioLoadType LoadType { get; init; }How it is kept once loaded.
Encoding
public AudioEncoding Encoding { get; init; }How it is encoded as it is imported.
Default
public static AudioImport Default { get; }What a clip nobody configured has: decoded whole as it loads, as its file encodes it.
SaysNothing
public bool SaysNothing { get; }Whether it says nothing a clip nobody configured does not.
Settings
public AudioSettings Settings { get; }What the engine plays the clip with.
Extensions
public static IReadOnlyList<string> Extensions { get; }The extensions of the files the engine plays as sound, lower case with their dot.
Methods
IsAudio
public static bool IsAudio(string path)Whether a path is a sound clip's, by its extension.
Parameters
path
