Browse Source

Fixes to make it compile properly.

Darryl Pogue 14 years ago
parent
commit
547ce8c090
  1. 8
      Sources/Plasma/PubUtilLib/plAudioCore/plCachedFileReader.cpp
  2. 7
      Sources/Plasma/PubUtilLib/plAudioCore/plCachedFileReader.h

8
Sources/Plasma/PubUtilLib/plAudioCore/plCachedFileReader.cpp

@ -34,6 +34,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
// //
//////////////////////////////////////////////////////////////////////////////
#include "hsTypes.h"
#include "plCachedFileReader.h"
//// Constructor/Destructor //////////////////////////////////////////////////
@ -84,6 +85,13 @@ void plCachedFileReader::IError(const char *msg)
Close();
}
plWAVHeader &plCachedFileReader::GetHeader()
{
hsAssert(IsValid(), "GetHeader() called on an invalid cache file");
return fHeader;
}
void plCachedFileReader::Close()
{
if (fFileHandle != nil)

7
Sources/Plasma/PubUtilLib/plAudioCore/plCachedFileReader.h

@ -48,7 +48,7 @@ public:
plAudioCore::ChannelSelect whichChan = plAudioCore::kAll);
virtual ~plCachedFileReader();
virtual plWAVHeader &GetHeader() const { return fHeader; }
virtual plWAVHeader &GetHeader();
virtual void Close();
@ -65,6 +65,11 @@ public:
virtual hsBool IsValid() { return fFileHandle != nil; }
protected:
enum
{
kPCMFormatTag = 1
};
char fFilename[512];
FILE * fFileHandle;
plWAVHeader fHeader;

Loading…
Cancel
Save