OpenSLES implementation of FSoundSource, the interface used to play, stop and update sources
更多...
#include <AndroidAudioDevice.h>
继承自 FSoundSource .
|
| | 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
|
| |
|
|
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.
|
| |
OpenSLES implementation of FSoundSource, the interface used to play, stop and update sources
◆ FSLESSoundSource()
| FSLESSoundSource::FSLESSoundSource |
( |
class FAudioDevice * |
InAudioDevice | ) |
|
Constructor
- 参数
-
| InAudioDevice | audio 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.
- 参数
-
| WaveInstance | wave 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.
该类的文档由以下文件生成: