2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Fixes to make it compile properly.

This commit is contained in:
Darryl Pogue
2011-04-25 19:15:54 -07:00
parent e3cb83f76c
commit 547ce8c090
2 changed files with 14 additions and 1 deletions

View File

@ -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)

View File

@ -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;