24 static AxVoiceManager &GetInstance();
27 void Setup(
void *mem, ulong memSize);
30 ulong GetRequiredMemSize(
int axVoiceCount);
32 AxVoice *AcquireAxVoice(ulong priority, AxVoice::Callback *callback,
34 void ReserveForFreeAxVoice(
AxVoice *voice);
35 void FreeAxVoice(
AxVoice *voice);
36 void FreeAllReservedAxVoice();
44 void ReserveForFree(
AxVoice *voice);
49 static int const VOICE_COUNT_MARGIN = 16;
50 static const int VOICE_MARGIN = 16;
51 static const int VOICE_MAX = AX_VOICE_MAX + VOICE_MARGIN;
52 static const int WORK_SIZE_MAX = VOICE_MAX *
sizeof(
AxVoice);
56 AxVoice::LinkList mActiveVoiceList;
57 AxVoice::LinkList mFreeVoiceList;
58 AxVoice::LinkList mFreeReservedVoiceList;