17 #ifndef _GAZEBO_UTIL_OPENAL_HH_
18 #define _GAZEBO_UTIL_OPENAL_HH_
24 #include <ignition/math/Vector3.hh>
25 #include <ignition/math/Pose3.hh>
31 #include "gazebo/gazebo_config.h"
44 class OpenALSourcePrivate;
57 private:
virtual ~OpenAL();
61 public:
bool Load(sdf::ElementPtr _sdf = sdf::ElementPtr());
79 private: std::unique_ptr<OpenALPrivate> dataPtr;
93 public:
virtual ~OpenALSink();
98 public:
bool SetPose(
const ignition::math::Pose3d &_pose);
103 public:
bool SetVelocity(
const ignition::math::Vector3d &_vel);
111 public: OpenALSource();
114 public:
virtual ~OpenALSource();
119 public:
bool Load(sdf::ElementPtr _sdf);
124 public:
bool SetPose(
const ignition::math::Pose3d &_pose);
129 public:
bool SetVelocity(
const ignition::math::Vector3d &_vel);
134 public:
bool SetPitch(
float _p);
139 public:
bool SetGain(
float _g);
144 public:
bool SetLoop(
bool _state);
159 public:
bool OnContact() const;
165 public:
std::vector<
std::
string> GetCollisionNames() const
171 public:
std::vector<
std::
string> CollisionNames() const;
176 public:
bool HasCollisionName(const
std::
string &_name) const;
182 public:
void Pause();
188 public:
void Rewind();
191 public:
bool IsPlaying();
198 public:
bool FillBufferFromPCM(uint8_t *_pcmData,
unsigned int _dataCount,
203 public:
void FillBufferFromFile(const
std::
string &_audioFile);
207 private:
std::unique_ptr<OpenALSourcePrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:33
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:48
std::shared_ptr< OpenALSink > OpenALSinkPtr
Definition: UtilTypes.hh:44
Singleton template class.
Definition: SingletonT.hh:33
#define GZ_UTIL_VISIBLE
Definition: system.hh:234
std::shared_ptr< OpenALSource > OpenALSourcePtr
Definition: UtilTypes.hh:48