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

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

#include <ALAudioDevice.h>

继承自 FSoundSource .

Public 成员函数

 FALSoundSource (class FAudioDevice *InAudioDevice)
 Constructor 更多...
 
ALuint GetSourceId (void) const
 Access function for the source id
 
void HandleQueuedBuffer (void)
 Handle dequeuing and requeuing of a single buffer
 
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 an OpenAL source has finished playing
 
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. 更多...
 
 ~FALSoundSource (void)
 Destructor
 

Protected 成员函数

FORCEINLINE FALAudioDevice * GetALDevice ()
 Convenience function to avoid casting in multiple places
 

Protected 属性

FALSoundBuffer * Buffer
 Cached sound buffer associated with currently bound wave instance.
 
ALuint SourceId
 OpenAL source voice associated with this source/ channel.
 

友元

class FALAudioDevice
 

详细描述

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

构造及析构函数说明

◆ FALSoundSource()

FALSoundSource::FALSoundSource ( class FAudioDevice *  InAudioDevice)
inline

Constructor

参数
InAudioDeviceaudio device this source is attached to

成员函数说明

◆ Init()

virtual bool FALSoundSource::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 FALSoundSource::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.

◆ Update()

virtual void FALSoundSource::Update ( void  )
virtual

Updates the source specific parameter like e.g.

volume and pitch based on the associated wave instance.


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