AssetInfoAudioSource
public class AssetInfoAudioSourceBridges AssetInventory’s AssetInfo to AudioTool’s IAudioSource interface. Enables seamless integration between AssetInventory and the standalone Audio Tool.
Constructors
Section titled “Constructors”
AssetInfoAudioSource(AssetInfo)
Section titled “AssetInfoAudioSource(AssetInfo)”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 |
Methods
Section titled “Methods”
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}
Properties
Section titled “Properties”
FileName
Section titled “FileName”public string FileName { get; }Returns
System.String
IsInProject
Section titled “IsInProject”public bool IsInProject { get; }Returns
System.Boolean
ProjectPath
Section titled “ProjectPath”public string ProjectPath { get; }Returns
System.String
AssetInfo
Section titled “AssetInfo”public AssetInfo AssetInfo { get; }Gets the AssetInfo this source was created from.
Returns
AssetInventory.AssetInfo