mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
33 lines
538 B
C++
33 lines
538 B
C++
|
#ifndef GAME_SOUND_FFMPEG_DECODER_H
|
||
|
#define GAME_SOUND_FFMPEG_DECODER_H
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
#include <avcodec.h>
|
||
|
#include <avformat.h>
|
||
|
}
|
||
|
|
||
|
#include "sound_decoder.hpp"
|
||
|
|
||
|
|
||
|
namespace MWSound
|
||
|
{
|
||
|
class FFmpeg_Decoder : public Sound_Decoder
|
||
|
{
|
||
|
virtual bool Open(const std::string &fname);
|
||
|
virtual void Close();
|
||
|
|
||
|
FFmpeg_Decoder();
|
||
|
virtual ~FFmpeg_Decoder();
|
||
|
|
||
|
friend class SoundManager;
|
||
|
};
|
||
|
#ifndef DEFAULT_DECODER
|
||
|
#define DEFAULT_DECODER (::MWSound::FFmpeg_Decoder)
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
#endif
|