mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 13:23:53 +00:00
Remove now unused Sound_Decoder::rewind()
This commit is contained in:
parent
dc1b010cf0
commit
1739351b7a
4 changed files with 0 additions and 14 deletions
|
@ -389,16 +389,6 @@ void FFmpeg_Decoder::readAll(std::vector<char> &output)
|
|||
}
|
||||
}
|
||||
|
||||
void FFmpeg_Decoder::rewind()
|
||||
{
|
||||
int stream_idx = mStream - mFormatCtx->streams;
|
||||
if(av_seek_frame(mFormatCtx, stream_idx, 0, 0) < 0)
|
||||
fail("Failed to seek in audio stream");
|
||||
av_free_packet(&mPacket);
|
||||
mFrameSize = mFramePos = 0;
|
||||
mNextPts = 0.0;
|
||||
}
|
||||
|
||||
size_t FFmpeg_Decoder::getSampleOffset()
|
||||
{
|
||||
int delay = (mFrameSize-mFramePos) / av_get_channel_layout_nb_channels(mOutputChannelLayout) /
|
||||
|
|
|
@ -74,7 +74,6 @@ namespace MWSound
|
|||
|
||||
virtual size_t read(char *buffer, size_t bytes);
|
||||
virtual void readAll(std::vector<char> &output);
|
||||
virtual void rewind();
|
||||
virtual size_t getSampleOffset();
|
||||
|
||||
void fail(const std::string &msg);
|
||||
|
|
|
@ -27,7 +27,6 @@ namespace MWSound
|
|||
|
||||
virtual void open(const std::string &fname);
|
||||
virtual void close();
|
||||
virtual void rewind();
|
||||
virtual std::string getName();
|
||||
virtual void getInfo(int *samplerate, ChannelConfig *chans, SampleType *type);
|
||||
virtual size_t read(char *buffer, size_t bytes);
|
||||
|
@ -102,7 +101,6 @@ namespace MWSound
|
|||
throw std::runtime_error("unimplemented");
|
||||
}
|
||||
void MWSoundDecoderBridge::close() {}
|
||||
void MWSoundDecoderBridge::rewind() {}
|
||||
|
||||
std::string MWSoundDecoderBridge::getName()
|
||||
{
|
||||
|
|
|
@ -42,7 +42,6 @@ namespace MWSound
|
|||
|
||||
virtual size_t read(char *buffer, size_t bytes) = 0;
|
||||
virtual void readAll(std::vector<char> &output);
|
||||
virtual void rewind() = 0;
|
||||
virtual size_t getSampleOffset() = 0;
|
||||
|
||||
Sound_Decoder(const VFS::Manager* resourceMgr) : mResourceMgr(resourceMgr)
|
||||
|
|
Loading…
Reference in a new issue