mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
fixup decoder constructors
This commit is contained in:
parent
71cfde4d8e
commit
64168d3301
2 changed files with 9 additions and 10 deletions
|
@ -5,11 +5,11 @@
|
|||
class CAEFLACDecoder : public CAEStreamingDecoder
|
||||
{
|
||||
private:
|
||||
FLAC__StreamDecoder* m_FLACdecoder;
|
||||
FLAC__StreamMetadata* m_streamMeta;
|
||||
FLAC__StreamDecoder* m_FLACdecoder = nullptr;
|
||||
FLAC__StreamMetadata* m_streamMeta = nullptr;
|
||||
FLAC__uint64 m_currentSample;
|
||||
FLAC__int32* m_buffer;
|
||||
size_t m_curBlockSize, m_maxBlockSize;
|
||||
FLAC__int32* m_buffer = nullptr;
|
||||
size_t m_curBlockSize, m_maxBlockSize = 0;
|
||||
size_t m_bufferCursor;
|
||||
bool m_eof;
|
||||
|
||||
|
@ -25,11 +25,10 @@ private:
|
|||
|
||||
public:
|
||||
CAEFLACDecoder(CAEDataStream* stream)
|
||||
: CAEStreamingDecoder(stream), m_FLACdecoder(nullptr), m_streamMeta(nullptr)
|
||||
, m_buffer(nullptr), m_curBlockSize(0), m_maxBlockSize(0), m_bufferCursor(0)
|
||||
: CAEStreamingDecoder(stream)
|
||||
{}
|
||||
|
||||
virtual ~CAEFLACDecoder();
|
||||
virtual ~CAEFLACDecoder() override;
|
||||
virtual bool Initialise() override;
|
||||
virtual uint32_t FillBuffer(void* pBuf, uint32_t nLen) override;
|
||||
virtual uint32_t GetStreamLengthMs() override
|
||||
|
|
|
@ -7,8 +7,8 @@ class CAEWaveDecoder : public CAEStreamingDecoder
|
|||
private:
|
||||
uint32_t m_dataSize;
|
||||
uint32_t m_offsetToData;
|
||||
size_t m_maxBlockSize;
|
||||
void* m_buffer;
|
||||
size_t m_maxBlockSize = 0;
|
||||
void* m_buffer = nullptr;
|
||||
|
||||
struct FormatChunk
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ private:
|
|||
|
||||
public:
|
||||
CAEWaveDecoder(CAEDataStream* stream)
|
||||
: CAEStreamingDecoder(stream), m_buffer(nullptr), m_maxBlockSize(0)
|
||||
: CAEStreamingDecoder(stream)
|
||||
{}
|
||||
|
||||
virtual ~CAEWaveDecoder() override
|
||||
|
|
Loading…
Reference in a new issue