Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
954 B
C++
45 lines
954 B
C++
|
|
#ifndef _SoundFile_H_
|
|
#define _SoundFile_H_
|
|
|
|
typedef unsigned long DWORD;
|
|
typedef unsigned short WORD;
|
|
typedef unsigned int size_t;
|
|
typedef struct _iobuf FILE;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
|
|
class ISoundFile
|
|
{
|
|
public:
|
|
enum eSeekPos
|
|
{
|
|
seek_begin,
|
|
seek_current,
|
|
seek_end
|
|
};
|
|
|
|
public:
|
|
static ISoundFile * CreateSoundFileInstance( const char * szFilename );
|
|
|
|
public:
|
|
virtual ~ISoundFile() {}
|
|
|
|
virtual void Create( const char * ) = 0;
|
|
virtual void Destroy() = 0;
|
|
virtual WORD GetBitsPerSample() = 0;
|
|
virtual DWORD GetSamplePerSec() = 0;
|
|
virtual WORD GetChannelCount() = 0;
|
|
virtual DWORD GetSize() = 0;
|
|
virtual void Reset() = 0;
|
|
virtual size_t Read( void * pBuf, size_t readSize ) = 0;
|
|
virtual size_t ReadWhole( void * pBuf ) = 0;
|
|
|
|
virtual const char * GetFilename() = 0;
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#endif |