engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表
FSLESSoundSource类 参考

OpenSLES implementation of FSoundSource, the interface used to play, stop and update sources 更多...

#include <AndroidAudioDevice.h>

继承自 FSoundSource .

Public 成员函数

 FSLESSoundSource (class FAudioDevice *InAudioDevice)
 Constructor 更多...
 
virtual bool Init (FWaveInstance *WaveInstance)
 Initializes a source with a given wave instance and prepares it for playback. 更多...
 
virtual bool IsFinished (void)
 Queries the status of the currently associated wave instance. 更多...
 
bool IsSourceFinished (void)
 Returns TRUE if source has finished playing
 
void OnRequeueBufferCallback (SLAndroidSimpleBufferQueueItf InQueueInterface)
 Used to requeue a looping sound when the completion callback fires.
 
virtual void Pause (void)
 Pauses playback of current wave instance.
 
virtual void Play (void)
 Plays the current wave instance. 更多...
 
virtual void Stop (void)
 Stops the current wave instance and detaches it from the source. 更多...
 
virtual void Update (void)
 Updates the source specific parameter like e.g. 更多...
 
 ~FSLESSoundSource (void)
 Destructor
 

Protected 成员函数

bool ReadMorePCMData (const int32 BufferIndex, EDataReadMode DataReadMode)
 Decompress through FSLESSoundBuffer, or call USoundWave procedure to generate more PCM data. 更多...
 

Protected 属性

SLESAudioBuffer AudioBuffers [2]
 A pair of sound buffers for real-time decoding
 
bool bBuffersToFlush
 Set when we wish to let the buffers play themselves out
 
bool bHasPositionUpdated
 Lets us know if calls to SL_PlayerPlayInterface->GetPosition have progressed past 0 at some point so we can determine when a non-looping sound has finished
 
bool bStreamedSound
 Which sound buffer should be written to next - used for double buffering.
 

友元

class FSLESAudioDevice
 

详细描述

OpenSLES implementation of FSoundSource, the interface used to play, stop and update sources

构造及析构函数说明

◆ FSLESSoundSource()

FSLESSoundSource::FSLESSoundSource ( class FAudioDevice *  InAudioDevice)

Constructor

参数
InAudioDeviceaudio device this source is attached to

成员函数说明

◆ Init()

virtual bool FSLESSoundSource::Init ( FWaveInstance *  WaveInstance)
virtual

Initializes a source with a given wave instance and prepares it for playback.

参数
WaveInstancewave instance being primed for playback
返回
TRUE if initialization was successful, FALSE otherwise

◆ IsFinished()

virtual bool FSLESSoundSource::IsFinished ( void  )
virtual

Queries the status of the currently associated wave instance.

返回
TRUE if the wave instance/ source has finished playback and FALSE if it is currently playing or paused.

◆ Play()

virtual void FSLESSoundSource::Play ( void  )
virtual

Plays the current wave instance.


◆ ReadMorePCMData()

bool FSLESSoundSource::ReadMorePCMData ( const int32  BufferIndex,
EDataReadMode  DataReadMode 
)
protected

Decompress through FSLESSoundBuffer, or call USoundWave procedure to generate more PCM data.

Returns true/false: did audio loop?

◆ Stop()

virtual void FSLESSoundSource::Stop ( void  )
virtual

Stops the current wave instance and detaches it from the source.


◆ Update()

virtual void FSLESSoundSource::Update ( void  )
virtual

Updates the source specific parameter like e.g.

volume and pitch based on the associated wave instance.


该类的文档由以下文件生成: