18 #ifndef _GAZEBO_AUDIO_DECODER_HH_
19 #define _GAZEBO_AUDIO_DECODER_HH_
25 struct AVFormatContext;
26 struct AVCodecContext;
50 public:
bool SetFile(
const std::string &_filename);
55 public: std::string GetFile()
const;
62 public:
bool Decode(uint8_t **_outBuffer,
unsigned int *_outBufferSize);
66 public:
int GetSampleRate();
69 private:
void Cleanup();
72 private: AVFormatContext *formatCtx;
75 private: AVCodecContext *codecCtx;
78 private: AVCodec *codec;
81 private:
int audioStream;
84 private:
static bool initialized;
87 private: std::string filename;
An audio decoder based on FFMPEG.
Definition: AudioDecoder.hh:39