natiny_audio_source_get_clip

C
NatinyClip natiny_audio_source_get_clip(NatinyAudioSource source);

Returns the clip a source plays.

Parameters

Name Type Description
source NatinyAudioSource Source handle

Returns

Type Description
NatinyClip Clip handle, or 0 when the source has none

Example

C
NatinyClip clip = natiny_audio_source_get_clip(source);

Notes

  • The handle is returned as it was set: a clip that has since been destroyed still reads back here, and plays nothing.
  • Invalid and non-source handles return 0.