Runner's High
Public Member Functions | List of all members
AudioAssetDatabase Class Reference

Establishes a connection to an SQL database that stores asset data such as file paths to audio files, loop points, midi notes etc. More...

Inheritance diagram for AudioAssetDatabase:

Public Member Functions

DBSet GetSetWithName (string name)
 Get a set with a specified name. More...
 
List< DBAssetGetAssetsForSet (DBSet s)
 Get all assets that belong to a set. More...
 
List< DBRelationCanMixGetCanMixRelations (DBAsset a)
 Get all match relations for an asset. More...
 
void MatchAssets (List< DBAsset > assets, List< DBAsset > assetsToMatch)
 Strips each item from assets that does not match with every single item from assetsToMatch. More...
 

Detailed Description

Establishes a connection to an SQL database that stores asset data such as file paths to audio files, loop points, midi notes etc.

Member Function Documentation

◆ GetAssetsForSet()

List<DBAsset> AudioAssetDatabase.GetAssetsForSet ( DBSet  s)

Get all assets that belong to a set.

Parameters
sThe set whose assets should be queried.
Returns
A List of DBAsset containing all assets of the set.

◆ GetCanMixRelations()

List<DBRelationCanMix> AudioAssetDatabase.GetCanMixRelations ( DBAsset  a)

Get all match relations for an asset.

Parameters
aThe asset that should be matched with other assets.
Returns
A List of all relations (not assets!) the asset is involved with.

◆ GetSetWithName()

DBSet AudioAssetDatabase.GetSetWithName ( string  name)

Get a set with a specified name.

Parameters
nameThe name of the set as defined in the database.
Returns
The corresponding set or null.

◆ MatchAssets()

void AudioAssetDatabase.MatchAssets ( List< DBAsset assets,
List< DBAsset assetsToMatch 
)

Strips each item from assets that does not match with every single item from assetsToMatch.

Parameters
assetsA mutable List that contains all candidates.
assetsToMatchA List of DBAsset that should be matched.

The documentation for this class was generated from the following file: