Tidied up AudioHardwareSA.h (deleting constructors ftw)

This commit is contained in:
Silent 2017-02-05 22:52:22 +01:00
parent a519219d8b
commit cfb5e67339

View file

@ -42,10 +42,7 @@ public:
GTAdelete(data); GTAdelete(data);
} }
CAEDataStreamOld(DWORD index, char* pName, int startPos, int len, bool encrypted) CAEDataStreamOld() = delete;
: pFilename(pName), bOpened(false), dwCurrentPosition(0), dwStartPosition(startPos),
dwLength(len), dwID(index), bEncrypted(encrypted), nRefCount(1)
{}
~CAEDataStreamOld() ~CAEDataStreamOld()
{ {
@ -113,10 +110,7 @@ public:
GTAdelete(data); GTAdelete(data);
} }
CAEDataStreamNew(DWORD index, char* pName, int startPos, int len, bool encrypted) CAEDataStreamNew() = delete;
: pFilename(pName), bOpened(false), dwCurrentPosition(0), dwStartPosition(startPos),
dwLength(len), dwID(index), bEncrypted(encrypted), nRefCount(1)
{}
~CAEDataStreamNew() ~CAEDataStreamNew()
{ {
@ -168,9 +162,8 @@ private:
static bool m_bUseNewStruct; static bool m_bUseNewStruct;
private: private:
// Make sure we never destruct/construct this ~CAEDataStream() = delete;
~CAEDataStream(); CAEDataStream() = delete;
CAEDataStream();
public: public:
static void SetStructType(bool bNew) static void SetStructType(bool bNew)
@ -260,7 +253,7 @@ private:
public: public:
CAEWaveDecoder(CAEDataStream* stream) CAEWaveDecoder(CAEDataStream* stream)
: CAEStreamingDecoder(stream)//, bInitialised(false) : CAEStreamingDecoder(stream)
{} {}
virtual bool Initialise() override; virtual bool Initialise() override;