LDKAudioSource
typedef struct LDKAudioSource{
LDKAssetAudio audio;
LDKAudioPriority priority;
float range;
float volume;
bool loop;
bool play_on_start;
LDKAudioVoice voice;
bool runtime_started;
}LDKAudioSource;
Spatial audio source component.
typedef struct LDKAudioSource{
LDKAssetAudio audio;
LDKAudioPriority priority;
float range;
float volume;
bool loop;
bool play_on_start;
LDKAudioVoice voice;
bool runtime_started;
}LDKAudioSource;
Create default settings for audio source.
LDK_API LDKAudioSource ldk_audio_source_make_default(void);
A value initialized with the engine defaults.
Start playback of the audio source.
LDK_API bool ldk_audio_source_play(LDKEntity entity);
LDKEntity entityTrue if the operation succeeds; false otherwise.
Stop the audio source.
LDK_API void ldk_audio_source_stop(LDKEntity entity);
LDKEntity entityCheck whether the audio source is playing.
LDK_API bool ldk_audio_source_is_playing(LDKEntity entity);
LDKEntity entityTrue when the queried condition holds; false otherwise.
Build the ECS registration descriptor for the audio source component.
LDK_API LDKComponentDesc ldk_audio_source_component_desc(u32 initial_capacity);
u32 initial_capacityA descriptor for the requested component or resource.
Update all registered audio source components.
LDK_API void ldk_audio_source_update_all(void);