18 #ifndef _GAZEBO_AUDIO_DECODER_HH_
19 #define _GAZEBO_AUDIO_DECODER_HH_
25 struct AVFormatContext;
26 struct AVCodecContext;
49 public:
bool SetFile(
const std::string &_filename);
54 public: std::string GetFile()
const;
61 public:
bool Decode(uint8_t **_outBuffer,
unsigned int *_outBufferSize);
65 public:
int GetSampleRate();
68 private:
void Cleanup();
71 private: AVFormatContext *formatCtx;
74 private: AVCodecContext *codecCtx;
77 private: AVCodec *codec;
80 private:
int audioStream;
83 private:
static bool initialized;
86 private: std::string filename;
An audio decoder based on FFMPEG.
Definition: AudioDecoder.hh:38
#define GZ_COMMON_VISIBLE
Definition: system.hh:84