1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Add a skeleton ffmpeg decoder

This commit is contained in:
Chris Robinson 2012-03-16 23:59:21 -07:00
parent 1322b1e160
commit 46cd84aac5
4 changed files with 66 additions and 1 deletions

View File

@ -38,7 +38,7 @@ add_openmw_dir (mwscript
)
add_openmw_dir (mwsound
soundmanager openal_output mpgsnd_decoder
soundmanager openal_output mpgsnd_decoder ffmpeg_decoder
)
add_openmw_dir (mwworld

View File

@ -0,0 +1,29 @@
#ifdef OPENMW_USE_FFMPEG
#include "ffmpeg_decoder.hpp"
namespace MWSound
{
bool FFmpeg_Decoder::Open(const std::string &fname)
{
return false;
}
void FFmpeg_Decoder::Close()
{
}
FFmpeg_Decoder::FFmpeg_Decoder()
{
}
FFmpeg_Decoder::~FFmpeg_Decoder()
{
}
}
#endif

View File

@ -0,0 +1,32 @@
#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

View File

@ -1,3 +1,5 @@
#ifdef OPENMW_USE_MPG123
#include "mpgsnd_decoder.hpp"
@ -27,3 +29,5 @@ MpgSnd_Decoder::~MpgSnd_Decoder()
}
}
#endif