LDKAssetAudioData

typedef struct LDKAssetAudioData{
  LDKAssetSourceFile source_file;
  void *encoded_data;
  u64 encoded_size;
  u32 ref_count;
}LDKAssetAudioData;
Function in ldk_asset_manager.h

ldk_asset_manager_audio_is_alive

Check whether the asset manager audio refers to a live resource.

LDK_API bool ldk_asset_manager_audio_is_alive(
 LDKAssetManager *manager,
 LDKAssetAudio asset
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
LDKAssetAudio asset
Asset handle to inspect or modify.

Returns

True when the queried condition holds; false otherwise.

Function in ldk_asset_manager.h

ldk_asset_manager_audio_load_shared

Load or reuse shared the asset manager audio.

LDK_API LDKAssetAudio ldk_asset_manager_audio_load_shared(
 LDKAssetManager *manager,
 const char *path
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
const char *path
Path identifying the file or resource.

Returns

Handle to the requested object or resource.