LDKAssetTextFileData

typedef struct LDKAssetTextFileData{
  char *text;
  u64 byte_count;
}LDKAssetTextFileData;
Function in ldk_asset_manager.h

ldk_asset_manager_clear

Clear manager-owned assets except audio retained by active voices. Audio data still referenced by active voices is retained.

LDK_API void ldk_asset_manager_clear(LDKAssetManager *manager);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
Function in ldk_asset_manager.h

ldk_asset_manager_initialize

Initialize an asset manager with an asset source and storage capacity.

LDK_API bool ldk_asset_manager_initialize(
 LDKAssetManager *manager,
 LDKAssetSource *source,
 u32 page_capacity,
 u32 initial_pages
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
LDKAssetSource *source
Source object or source data for this operation.
u32 page_capacity
Number of entries per allocation page.
u32 initial_pages
Number of pages initially allocated.

Returns

True if the operation succeeds; false otherwise.