Go to the documentation of this file.
27 #ifndef _AKFXDURATIONHANDLER_H_
28 #define _AKFXDURATIONHANDLER_H_
89 out_uValidFrames = in_uMaxFrames;
99 if ( uFramesRemaining <= in_uMaxFrames )
101 out_uValidFrames = (
AkUInt16)uFramesRemaining;
107 out_uValidFrames = 0;
125 #endif // _AKFXDURATIONHANDLER_H_
uint16_t AkUInt16
Unsigned 16-bit integer.
@ AK_DataReady
The provider has available data.
AKRESULT
Standard function call result.
@ AK_NoMoreData
No more data is available from the source.
float AkReal32
32-bit floating point
AKRESULT eState
Execution status.
void Reset()
Reset looping and frame counters and start again.
AkUInt16 uValidFrames
Number of valid sample frames in the audio buffer.
void SetDuration(AkReal32 in_fDuration)
Set current duration per iteration (in secs).
void Setup(AkReal32 in_fDuration, AkInt16 in_iLoopingCount, AkUInt32 in_uSampleRate)
Setup duration handler.
AKRESULT ProduceBuffer(AkUInt16 in_uMaxFrames, AkUInt16 &out_uValidFrames)
void SetLooping(AkInt16 in_iNumLoops)
Change number of loop iterations (0 == infinite).
int16_t AkInt16
Signed 16-bit integer.
uint32_t AkUInt32
Unsigned 32-bit integer.
AkUInt32 m_uIterationFrame
AkReal32 GetDuration() const
Return current total duration (considering looping) in secs.
void ProduceBuffer(AkAudioBuffer *io_pBuffer)
AkForceInline AkUInt16 MaxFrames() const
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise