mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:49:56 +00:00
44 lines
640 B
C++
44 lines
640 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); }
|
|
|
|
void FFmpeg_Decoder::open(const std::string &fname)
|
|
{
|
|
fail("Not currently working");
|
|
}
|
|
|
|
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()
|
|
{
|
|
close();
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|