Audio

ILxAudioAnimService

class ILxAudioAnimService

Public Functions

LxResult Item(LXtObjectID self, void **ppvObj)

Audio for animation can be accessed through the SDK using a global service interface. Return the audio clip item for animation.

LxResult Sample(LXtObjectID self, double time, unsigned int type, void *value)
int Playing(LXtObjectID self)

Return true if the audio for animation is playing.

int Loop(LXtObjectID self)

Return true if the audio for animation is loop mode.

int Mute(LXtObjectID self)

Return true if the audio for animation is in mute.

int Scrub(LXtObjectID self)

Return true if the scurb is enabled.

double Start(LXtObjectID self)

Return the start time to play audio.

double End(LXtObjectID self)

Return the end time to play audio.

LxResult Audio(LXtObjectID self, void **ppvObj)

Return the audio object.

LxResult Preview(LXtObjectID self, double startTime, double endTime, void **ppvObj)

This also return the audio object between start and end times, but this is resampled with the current animation settings like Start time and Loop. The audio object must be release on user side.

LxResult ItemSample(LXtObjectID self, LXtObjectID obj, int loop, double time, unsigned int type, void *value)
LxResult ItemAudio(LXtObjectID self, LXtObjectID obj, void **ppvObj)

Return the audio object.

bool GetAudio(CLxUser_Audio &audio)

User Class Only:

bool GetItemAudio(CLxUser_Item item, CLxUser_Audio &audio)