Struct in ldk_audio.h

LDKAudioPlayDesc

typedef struct LDKAudioPlayDesc{
  LDKAudioPriority priority;
  float volume;
  float range;
  Vec3 position;
  bool loop;
  bool spatialized;
}LDKAudioPlayDesc;
Function in ldk_audio.h

ldk_audio_asset_play

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
);

Parameters

LDKAudio *audio
Audio used by this operation.
LDKAssetAudio asset
Asset handle to inspect or modify.
const LDKAudioPlayDesc *desc
Description or configuration for this operation.

Returns

The requested value.

Function in ldk_audio.h

ldk_audio_play_desc_default

Initialize an audio playback descriptor with defaults.

LDK_API LDKAudioPlayDesc ldk_audio_play_desc_default(void);

Returns

A descriptor for the requested component or resource.