1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 01:49:54 +00:00
openmw-tes3mp/apps/openmw/mwsound/ffmpeg_decoder.cpp
2012-03-17 02:51:46 -07:00

44 lines
645 B
C++

#ifdef OPENMW_USE_FFMPEG
#include "ffmpeg_decoder.hpp"
namespace MWSound
{
static void fail(const std::string &msg)
{ throw std::runtime_error("FFmpeg exception: "+msg); }
bool FFmpeg_Decoder::Open(const std::string &fname)
{
fail("Not currently working");
return false;
}
void FFmpeg_Decoder::Close()
{
}
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;
}
FFmpeg_Decoder::FFmpeg_Decoder()
{
}
FFmpeg_Decoder::~FFmpeg_Decoder()
{
}
}
#endif