LDKAssetAudioData
typedef struct LDKAssetAudioData{
LDKAssetSourceFile source_file;
void *encoded_data;
u64 encoded_size;
u32 ref_count;
}LDKAssetAudioData;
typedef struct LDKAssetAudioData{
LDKAssetSourceFile source_file;
void *encoded_data;
u64 encoded_size;
u32 ref_count;
}LDKAssetAudioData;
Return an invalid handle for the asset audio.
LDK_API LDKAssetAudio ldk_asset_audio_null(void);
An invalid or empty handle.
Get the asset manager audio.
LDK_API LDKAssetAudioData * ldk_asset_manager_audio_get(
LDKAssetManager *manager,
LDKAssetAudio asset
);
LDKAssetManager *managerLDKAssetAudio assetPointer to the requested object or data; NULL when unavailable.
Get read-only access to the asset manager audio.
LDK_API const LDKAssetAudioData * ldk_asset_manager_audio_get_const(
LDKAssetManager *manager,
LDKAssetAudio asset
);
LDKAssetManager *managerLDKAssetAudio assetPointer to the requested object or data; NULL when unavailable.
Check whether the asset manager audio refers to a live resource.
LDK_API bool ldk_asset_manager_audio_is_alive(
LDKAssetManager *manager,
LDKAssetAudio asset
);
LDKAssetManager *managerLDKAssetAudio assetTrue when the queried condition holds; false otherwise.
Load or reuse shared the asset manager audio.
LDK_API LDKAssetAudio ldk_asset_manager_audio_load_shared(
LDKAssetManager *manager,
const char *path
);
LDKAssetManager *managerconst char *pathHandle to the requested object or resource.