Restructure repository to include all source folders
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>
This commit is contained in:
45
GameTools/SoundLib/OggLoader.h
Normal file
45
GameTools/SoundLib/OggLoader.h
Normal file
@@ -0,0 +1,45 @@
|
||||
// OggLoader.h: interface for the COggLoader class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_OGGLOADER_H__EDD0A382_ACBB_4E9B_974E_02D96D520340__INCLUDED_)
|
||||
#define AFX_OGGLOADER_H__EDD0A382_ACBB_4E9B_974E_02D96D520340__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include "Common.h"
|
||||
#include <dsound.h>
|
||||
#include <vorbis/codec.h>
|
||||
#include <vorbis/vorbisfile.h>
|
||||
|
||||
class COggLoader
|
||||
{
|
||||
public:
|
||||
DWORD m_dwBufferSize;
|
||||
DWORD m_dwNumSamples;
|
||||
vorbis_info* m_pVorbisInfo;
|
||||
bool m_bEOF;
|
||||
bool m_bOpen;
|
||||
FILE* m_pFP;
|
||||
|
||||
WAVEFORMATEX m_WaveFormatEx;
|
||||
OggVorbis_File m_VorbisFile;
|
||||
|
||||
public:
|
||||
COggLoader();
|
||||
virtual ~COggLoader();
|
||||
|
||||
void Init();
|
||||
bool Open( char* strFileName);
|
||||
bool Close();
|
||||
bool Read( BYTE* pBuffer, DWORD dwSizeToRead, DWORD* pdwSizeRead );
|
||||
DWORD GetSize();
|
||||
bool Reset();
|
||||
WAVEFORMATEX* GetFormat() { return &m_WaveFormatEx; };
|
||||
bool IsEOF() { return m_bEOF; };
|
||||
bool GetStreamInfo();
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_OGGLOADER_H__EDD0A382_ACBB_4E9B_974E_02D96D520340__INCLUDED_)
|
||||
Reference in New Issue
Block a user