Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
StrmChannel.h
Go to the documentation of this file.
1#ifndef NW4HBM_SND_STRM_CHANNEL_H
2#define NW4HBM_SND_STRM_CHANNEL_H
3
4#include "snd_types.h"
5
6namespace nw4hbm {
7 namespace snd {
8 namespace detail {
9
10 typedef struct StrmChannel {
11 /* 0x00 */ void* mBuffer;
12 /* 0x04 */ u32 mBufferSize;
15
17 public:
18 void Setup(void* base, u32 size, int count);
19 void Shutdown();
20
21 void* Alloc();
22 void Free(void* buffer);
23
24 u32 GetBlockSize() const { return mBlockSize; }
25
26 private:
27 static const int BLOCK_MAX = 32;
28 static const int BITS_PER_BYTE = 8;
29
30 /* 0x00 */ void* mBuffer;
31 /* 0x04 */ u32 mBufferSize;
32 /* 0x08 */ u32 mBlockSize;
33 /* 0x0C */ int mBlockCount;
34 /* 0x10 */ int mAllocCount;
36 };
37
38 } // namespace detail
39 } // namespace snd
40} // namespace nw4hbm
41
42#endif
static u8 base[0x2A]
Definition WPADEncrypt.c:10
Definition StrmChannel.h:16
static const int BLOCK_MAX
Definition StrmChannel.h:27
void * mBuffer
Definition StrmChannel.h:30
u32 mBlockSize
Definition StrmChannel.h:32
u8 mAllocFlags[BLOCK_MAX/BITS_PER_BYTE]
Definition StrmChannel.h:35
int mAllocCount
Definition StrmChannel.h:34
static const int BITS_PER_BYTE
Definition StrmChannel.h:28
u32 mBufferSize
Definition StrmChannel.h:31
int mBlockCount
Definition StrmChannel.h:33
void Setup(void *base, u32 size, int count)
u32 GetBlockSize() const
Definition StrmChannel.h:24
static OSTime buffer
Definition ai.c:24
unsigned int size
Definition __os.h:106
unsigned long u32
Definition types.h:12
unsigned char u8
Definition types.h:8
struct nw4hbm::snd::detail::StrmChannel StrmChannel
Definition HBMAnmController.h:6
Definition snd_types.h:107
Definition StrmChannel.h:10
AdpcmInfo mAdpcmInfo
Definition StrmChannel.h:13
void * mBuffer
Definition StrmChannel.h:11
u32 mBufferSize
Definition StrmChannel.h:12