Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <OpenALRenderableStreamingSource.h>
Public Member Functions | |
OpenALRenderableStreamingSource (Source *source) | |
virtual | ~OpenALRenderableStreamingSource () |
bool | shouldBePlaying () const |
![]() | |
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 | queueALBuffers () 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 OpenALRenderableStreamingSource.h.
Audio::OpenALRenderableStreamingSource::OpenALRenderableStreamingSource | ( | Source * | source) |
Definition at line 28 of file OpenALRenderableStreamingSource.cpp.
|
virtual |
Definition at line 38 of file OpenALRenderableStreamingSource.cpp.
|
inlineprotected |
Derived classes may use the underlying AL source handle to set additional attributes
Definition at line 63 of file OpenALRenderableStreamingSource.h.
Referenced by getPlayingTimeImpl(), isPlayingImpl(), and queueALBuffers().
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 88 of file OpenALRenderableStreamingSource.cpp.
References AL_SEC_OFFSET, f, getALSource(), Audio::Source::getSound(), and Audio::RenderableSource::getSource().
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 80 of file OpenALRenderableStreamingSource.cpp.
References getALSource().
|
protected |
Queue AL buffers from the source's AL sound stream.
Definition at line 193 of file OpenALRenderableStreamingSource.cpp.
References AL_NULL_BUFFER, buffer, e, fprintf, getALSource(), Audio::Source::getSound(), Audio::RenderableSource::getSource(), i, Audio::Source::isLooping(), Audio::OpenALStreamingSound::readAndFlip(), Audio::OpenALStreamingSound::seek(), and Audio::OpenALStreamingSound::unqueueBuffer().
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 103 of file OpenALRenderableStreamingSource.cpp.
|
inline |
Returns whether this stream should be playing
Definition at line 41 of file OpenALRenderableStreamingSource.h.
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 43 of file OpenALRenderableStreamingSource.cpp.
References checkAlError, clearAlError, and start.
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 72 of file OpenALRenderableStreamingSource.cpp.
|
protectedvirtual |
Implements Audio::RenderableSource.
Definition at line 112 of file OpenALRenderableStreamingSource.cpp.
References Audio::alSource3f(), checkAlError, clearAlError, f, Audio::Source::getAngleRange(), Audio::Source::getDirection(), Audio::Source::getGain(), Audio::Source::getPosition(), Audio::Source::getRadius(), Audio::Source::getSound(), Audio::Source::getVelocity(), Audio::Source::isAttenuated(), Audio::Source::isLooping(), Audio::Source::isRelative(), M_1_PI, Audio::Range< T >::max, and Audio::Range< T >::min.