Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
46
Tools/SoundLib/StreamBuffer.h
Normal file
46
Tools/SoundLib/StreamBuffer.h
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
#ifndef _StreamBuffer_H_
|
||||
#define _StreamBuffer_H_
|
||||
|
||||
#include "SoundBuffer.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
class CStreamBuffer : public CSoundBuffer
|
||||
{
|
||||
protected:
|
||||
DWORD m_dwLastPlayPos;
|
||||
DWORD m_dwPlayProgress;
|
||||
DWORD m_dwNotifySize;
|
||||
DWORD m_dwNextWriteOffset;
|
||||
HANDLE m_hNotificationEvent;
|
||||
bool m_bFillNextNotificationWithSilence;
|
||||
bool m_bLoopPlay;
|
||||
|
||||
private:
|
||||
CStreamBuffer( const CStreamBuffer & ); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD> <20><><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD>.
|
||||
CStreamBuffer & operator=( const CStreamBuffer & );
|
||||
|
||||
public:
|
||||
CStreamBuffer();
|
||||
CStreamBuffer( IDirectSound8 *, ISoundFile *, bool b3DSound, DWORD dwNumBuffers = 10 );
|
||||
CStreamBuffer( IDirectSound8 *, const char *, bool b3DSound, DWORD dwNumBuffers = 10 );
|
||||
~CStreamBuffer();
|
||||
|
||||
void Create( IDirectSound8 *, ISoundFile *, bool b3DSound, DWORD dwNumBuffers = 10, DWORD dwAddFlag = 0 );
|
||||
void Create( IDirectSound8 *, const char *, bool b3DSound, DWORD dwNumBuffers = 10, DWORD dwAddFlag = 0 );
|
||||
void Destroy();
|
||||
int Play( bool bLoop );
|
||||
void Play( DWORD dwIndex, bool bLoop );
|
||||
void Reset( unsigned );
|
||||
void ResetAll();
|
||||
HANDLE GetEventNotify() { return m_hNotificationEvent; }
|
||||
void HandleNotification();
|
||||
|
||||
eSndObjType GetType() { return SNDOBJTYPE_STREAMBUFFER; }
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user