Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <OpenALRenderer.h>
Public Member Functions | |
OpenALRenderer () throw (Exception) | |
virtual | ~OpenALRenderer () |
virtual SharedPtr< Sound > | getSound (const std::string &name, VSFileSystem::VSFileType type=VSFileSystem::UnknownFile, bool streaming=false) throw (Exception) |
virtual bool | owns (SharedPtr< Sound > sound) |
virtual void | attach (SharedPtr< Source > source) throw (Exception) |
virtual void | attach (SharedPtr< Listener > listener) throw (Exception) |
virtual void | detach (SharedPtr< Source > source) throw () |
virtual void | detach (SharedPtr< Listener > listener) throw () |
virtual void | setMeterDistance (Scalar distance) throw () |
virtual void | setDopplerFactor (Scalar factor) throw () |
virtual void | setOutputFormat (const Format &format) throw (Exception) |
virtual void | beginTransaction () throw (Exception) |
virtual void | commitTransaction () throw (Exception) |
![]() | |
Renderer () throw (Exception) | |
virtual | ~Renderer () |
virtual Scalar | getMeterDistance () const throw () |
virtual Scalar | getDopplerFactor () const throw () |
virtual const Format & | getOutputFormat () const throw () |
Protected Member Functions | |
virtual void | checkContext () throw (Exception) |
virtual void | initContext () throw (Exception) |
void | setupDopplerEffect () throw (Exception) |
Protected Attributes | |
AutoPtr < __impl::OpenAL::RendererData > | data |
OpenAL Renderer implementation
Definition at line 29 of file OpenALRenderer.h.
Audio::OpenALRenderer::OpenALRenderer | ( | ) | ||
throw | ( | Exception | ||
) |
Initialize the renderer with default or config-driven settings.
Definition at line 235 of file OpenALRenderer.cpp.
|
virtual |
Definition at line 241 of file OpenALRenderer.cpp.
Attach a source to this renderer
Implements Audio::Renderer.
Definition at line 279 of file OpenALRenderer.cpp.
Attach a listener to this renderer
Implements Audio::Renderer.
Definition at line 291 of file OpenALRenderer.cpp.
|
virtual |
Begins a transaction
Reimplemented from Audio::Renderer.
Definition at line 356 of file OpenALRenderer.cpp.
|
protectedvirtual |
Makes sure the AL context is valid, creating one if necessary
Reimplemented in Audio::BorrowedOpenALRenderer.
Definition at line 345 of file OpenALRenderer.cpp.
|
virtual |
Reimplemented from Audio::Renderer.
Definition at line 365 of file OpenALRenderer.cpp.
Detach a source from this renderer.
Implements Audio::Renderer.
Definition at line 299 of file OpenALRenderer.cpp.
Detach a listener from this renderer.
Implements Audio::Renderer.
Definition at line 306 of file OpenALRenderer.cpp.
|
virtual |
Create a sound, from the stream of the specified name.
name | The path of the soundfile. |
type | The file type (needed by the filesystem). |
straeming | If true, requests for a streaming sound - one that is not loaded to memory for playback, but rather read on-demand during playback. |
Implements Audio::Renderer.
Definition at line 245 of file OpenALRenderer.cpp.
|
protectedvirtual |
Sets expected defaults into the context
Definition at line 371 of file OpenALRenderer.cpp.
Return whether the specified sound has been created using this renderer or not
Implements Audio::Renderer.
Definition at line 274 of file OpenALRenderer.cpp.
|
virtual |
Sets how much the doppler effect will be accounted for.
Reimplemented from Audio::Renderer.
Definition at line 326 of file OpenALRenderer.cpp.
References Audio::Renderer::setDopplerFactor().
|
virtual |
Sets the distance in world units that represents one meter.
Reimplemented from Audio::Renderer.
Definition at line 313 of file OpenALRenderer.cpp.
References Audio::Renderer::setMeterDistance().
Sets the (preferred) output format.
Reimplemented from Audio::Renderer.
Reimplemented in Audio::BorrowedOpenALRenderer.
Definition at line 335 of file OpenALRenderer.cpp.
References Audio::Renderer::setOutputFormat().
|
protected |
Sets doppler effect globals into the context
Definition at line 382 of file OpenALRenderer.cpp.
References checkAlError, and clearAlError.
|
protected |
Definition at line 32 of file OpenALRenderer.h.