Files
ss/include/nw4r/snd/snd_StrmChannel.h
T
elijah-thomas774 fa9a9ce949 lyt_common match
2024-05-12 20:23:22 -04:00

28 lines
597 B
C++

#ifndef NW4R_SND_STRMCHANNEL_H
#define NW4R_SND_STRMCHANNEL_H
#include "common.h"
#define BLOCK_MAX 0x20
namespace nw4r {
namespace snd {
namespace detail {
struct StrmBufferPool {
void Setup(void *, u32, int);
void Shutdown();
void *Alloc();
void Free(void *);
void *mBuffer; // at 0x0
u32 mStrmBufferSize; // at 0x4
u32 mBlockSize; // at 0x8
s32 mBlockCount; // at 0xC (< BLOCK_MAX)
s32 mAllocCount; // at 0x10
u8 mAllocFlags[4]; // at 0x14 (1 bit per block)
};
} // namespace detail
} // namespace snd
} // namespace nw4r
#endif