Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GNASH_MEDIA_FFMPEG_AUDIORESAMPLERFFMPEG_H
00021 #define GNASH_MEDIA_FFMPEG_AUDIORESAMPLERFFMPEG_H
00022
00023 #include "log.h"
00024 #include "dsodefs.h"
00025
00026 #include "ffmpegHeaders.h"
00027
00028 #include <boost/cstdint.hpp>
00029
00030 namespace gnash {
00031 namespace media {
00032 namespace ffmpeg {
00033
00035
00038 class AudioResamplerFfmpeg
00039 {
00040 public:
00041 DSOEXPORT AudioResamplerFfmpeg();
00042
00043 DSOEXPORT ~AudioResamplerFfmpeg();
00044
00046
00052 DSOEXPORT bool init(AVCodecContext* ctx);
00053
00055
00067 DSOEXPORT int resample(
00068 boost::int16_t* input, boost::int16_t* output, int samples
00069 );
00070
00071 private:
00072
00073 ReSampleContext* _context;
00074 };
00075
00076 }
00077 }
00078 }
00079
00080
00081 #endif // GNASH_MEDIA_FFMPEG_AUDIORESAMPLERFFMPEG_H