Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <OpenALRenderableSource.h>
Public Member Functions | |
OpenALRenderableSource (Source *source) | |
virtual | ~OpenALRenderableSource () |
![]() | |
virtual | ~RenderableSource () |
void | startPlaying (Timestamp start=0) throw (Exception) |
void | stopPlaying () throw () |
bool | isPlaying () const throw () |
Timestamp | getPlayingTime () const throw (Exception) |
Source * | getSource () const throw () |
void | seek (Timestamp time) throw (Exception) |
void | update (int flags, const Listener &sceneListener) throw () |
![]() | |
virtual | ~UserData () |
Protected Member Functions | |
virtual void | startPlayingImpl (Timestamp start) throw (Exception) |
virtual void | stopPlayingImpl () throw (Exception) |
virtual bool | isPlayingImpl () const throw (Exception) |
virtual Timestamp | getPlayingTimeImpl () const throw (Exception) |
virtual void | updateImpl (int flags, const Listener &sceneListener) throw (Exception) |
virtual void | seekImpl (Timestamp time) throw (Exception) |
ALuint | getALSource () const |
void | attachALBuffers () throw (Exception) |
![]() | |
RenderableSource (Source *source) throw () | |
Additional Inherited Members | |
![]() | |
enum | UpdateFlags { UPDATE_ALL = 0x0F, UPDATE_LOCATION = 0x01, UPDATE_ATTRIBUTES = 0x02, UPDATE_EFFECTS = 0x04, UPDATE_GAIN = 0x08 } |
OpenAL Renderable Source class
Definition at line 23 of file OpenALRenderableSource.h.
Audio::OpenALRenderableSource::OpenALRenderableSource | ( | Source * | source) |
Definition at line 28 of file OpenALRenderableSource.cpp.
|
virtual |
Definition at line 36 of file OpenALRenderableSource.cpp.
|
protected |
Attach AL buffers from the source's AL sound, if not attached already.
Definition at line 139 of file OpenALRenderableSource.cpp.
References checkAlError, getALSource(), Audio::Source::getSound(), and Audio::RenderableSource::getSource().
|
inlineprotected |
Derived classes may use the underlying AL source handle to set additional attributes
Definition at line 53 of file OpenALRenderableSource.h.
Referenced by attachALBuffers(), getPlayingTimeImpl(), and isPlayingImpl().
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 73 of file OpenALRenderableSource.cpp.
References AL_SEC_OFFSET, f, and getALSource().
Implements Audio::RenderableSource.
Definition at line 65 of file OpenALRenderableSource.cpp.
References getALSource().
Implements Audio::RenderableSource.
Definition at line 160 of file OpenALRenderableSource.cpp.
References AL_SEC_OFFSET, checkAlErrorCode, clearAlError, and error.
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 41 of file OpenALRenderableSource.cpp.
References checkAlError, clearAlError, and start.
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 59 of file OpenALRenderableSource.cpp.
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 85 of file OpenALRenderableSource.cpp.
References Audio::alSource3f(), checkAlError, clearAlError, f, Audio::Source::getAngleRange(), Audio::Source::getDirection(), Audio::Source::getGain(), Audio::Source::getPosition(), Audio::Source::getRadius(), Audio::Source::getVelocity(), Audio::Source::isAttenuated(), Audio::Source::isLooping(), Audio::Source::isRelative(), M_1_PI, Audio::Range< T >::max, and Audio::Range< T >::min.