LDKAudioPlayDesc
typedef struct LDKAudioPlayDesc{
LDKAudioPriority priority;
float volume;
float range;
Vec3 position;
bool loop;
bool spatialized;
}LDKAudioPlayDesc;
typedef struct LDKAudioPlayDesc{
LDKAudioPriority priority;
float volume;
float range;
Vec3 position;
bool loop;
bool spatialized;
}LDKAudioPlayDesc;
Plays a shared audio asset and returns a versioned playback handle. Small assets may be cached in memory; larger assets stream from RunTree or an open .box package. Active voices retain a reference to the asset data.
LDK_API LDKAudioVoice ldk_audio_asset_play(
LDKAudio *audio,
LDKAssetAudio asset,
const LDKAudioPlayDesc *desc
);
LDKAudio *audioLDKAssetAudio assetconst LDKAudioPlayDesc *descThe requested value.
Initialize an audio playback descriptor with defaults.
LDK_API LDKAudioPlayDesc ldk_audio_play_desc_default(void);
A descriptor for the requested component or resource.