Skip to content

AssetInfoAudioSource

ClassAssetInventoryAssetInventory.Editor
public class AssetInfoAudioSource

Bridges AssetInventory’s AssetInfo to AudioTool’s IAudioSource interface. Enables seamless integration between AssetInventory and the standalone Audio Tool.

public AssetInfoAudioSource(AssetInfo assetInfo)

Creates an audio source adapter that materializes and opens the supplied indexed audio file on demand.

Parameters

Name Type
assetInfo AssetInventory.AssetInfo

GetMaterializedPathAsync(CancellationToken)

Section titled “GetMaterializedPathAsync(CancellationToken)”
public Task<string> GetMaterializedPathAsync(CancellationToken ct = default)

Ensures the indexed audio file is available locally and returns its usable path, honoring cancellation.

Parameters

Name Type
ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{System.String}

public string FileName { get; }

Returns

System.String

public bool IsInProject { get; }

Returns

System.Boolean

public string ProjectPath { get; }

Returns

System.String

public AssetInfo AssetInfo { get; }

Gets the AssetInfo this source was created from.

Returns

AssetInventory.AssetInfo