2012-03-17 06:59:21 +00:00
|
|
|
#ifdef OPENMW_USE_FFMPEG
|
|
|
|
|
|
|
|
#include "ffmpeg_decoder.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace MWSound
|
|
|
|
{
|
|
|
|
|
2012-03-17 09:51:46 +00:00
|
|
|
static void fail(const std::string &msg)
|
|
|
|
{ throw std::runtime_error("FFmpeg exception: "+msg); }
|
|
|
|
|
2012-03-17 10:18:28 +00:00
|
|
|
void FFmpeg_Decoder::Open(const std::string &fname)
|
2012-03-17 06:59:21 +00:00
|
|
|
{
|
2012-03-17 09:51:46 +00:00
|
|
|
fail("Not currently working");
|
2012-03-17 06:59:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void FFmpeg_Decoder::Close()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-03-17 09:51:46 +00:00
|
|
|
void FFmpeg_Decoder::GetInfo(int *samplerate, ChannelConfig *chans, SampleType *type)
|
|
|
|
{
|
|
|
|
fail("Not currently working");
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t FFmpeg_Decoder::Read(char *buffer, size_t bytes)
|
|
|
|
{
|
|
|
|
fail("Not currently working");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-03-17 06:59:21 +00:00
|
|
|
|
|
|
|
FFmpeg_Decoder::FFmpeg_Decoder()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
FFmpeg_Decoder::~FFmpeg_Decoder()
|
|
|
|
{
|
2012-03-18 18:34:23 +00:00
|
|
|
Close();
|
2012-03-17 06:59:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|