OpenAL implementation of FSoundSource, the interface used to play, stop and update sources
更多...
#include <ALAudioDevice.h>
继承自 FSoundSource .
|
| | 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
|
| |
|
|
FORCEINLINE FALAudioDevice * | GetALDevice () |
| | Convenience function to avoid casting in multiple places
|
| |
|
|
FALSoundBuffer * | Buffer |
| | Cached sound buffer associated with currently bound wave instance.
|
| |
|
ALuint | SourceId |
| | OpenAL source voice associated with this source/ channel.
|
| |
OpenAL implementation of FSoundSource, the interface used to play, stop and update sources
◆ FALSoundSource()
| FALSoundSource::FALSoundSource |
( |
class FAudioDevice * |
InAudioDevice | ) |
|
|
inline |
Constructor
- 参数
-
| InAudioDevice | audio 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.
- 参数
-
| WaveInstance | wave 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.
该类的文档由以下文件生成: