3D audio setup and playback. More...
#include <util/util.hh>
Inherits SingletonT< OpenAL >.
Public Member Functions | |
OpenALSinkPtr | CreateSink (sdf::ElementPtr _sdf) |
Create an audio listener. More... | |
OpenALSourcePtr | CreateSource (sdf::ElementPtr _sdf) |
Create an OpenALSource object. More... | |
std::set< std::string > | DeviceList () const |
Get a list of available audio devices. More... | |
void | Fini () |
Finalize. More... | |
bool | Load (sdf::ElementPtr _sdf=sdf::ElementPtr()) |
Load the OpenAL server. More... | |
Static Public Member Functions | |
static OpenAL * | Instance () |
Get an instance of the singleton. More... | |
3D audio setup and playback.
OpenALSinkPtr CreateSink | ( | sdf::ElementPtr | _sdf | ) |
Create an audio listener.
Currenly, only one listener may be created.
[in] | _sdf | SDF element parameters for an audio_source. |
OpenALSourcePtr CreateSource | ( | sdf::ElementPtr | _sdf | ) |
Create an OpenALSource object.
[in] | _sdf | SDF element parameters for an audio_source. |
std::set<std::string> DeviceList | ( | ) | const |
Get a list of available audio devices.
void Fini | ( | ) |
Finalize.
|
inlinestaticinherited |
Get an instance of the singleton.
bool Load | ( | sdf::ElementPtr | _sdf = sdf::ElementPtr() | ) |
Load the OpenAL server.