18 #ifndef MT32EMU_PARTIALMANAGER_H 19 #define MT32EMU_PARTIALMANAGER_H 22 #include "internals.h" 38 Bit8u numReservedPartialsForPart[9];
39 Bit32u firstFreePolyIndex;
40 int *inactivePartials;
41 Bit32u inactivePartialCount;
43 bool abortFirstReleasingPolyWhereReserveExceeded(
int minPart);
44 bool abortFirstPolyPreferHeldWhereReserveExceeded(
int minPart);
49 Partial *allocPartial(
int partNum);
50 unsigned int getFreePartialCount();
51 void getPerPartPartialUsage(
unsigned int perPartPartialUsage[9]);
52 bool freePartials(
unsigned int needed,
int partNum);
53 unsigned int setReserve(Bit8u *rset);
55 bool produceOutput(
int i, IntSample *leftBuf, IntSample *rightBuf, Bit32u bufferLength);
56 bool produceOutput(
int i, FloatSample *leftBuf, FloatSample *rightBuf, Bit32u bufferLength);
57 bool shouldReverb(
int i);
58 void clearAlreadyOutputed();
59 const Partial *getPartial(
unsigned int partialNum)
const;
61 void polyFreed(
Poly *poly);
62 void partialDeactivated(
int partialIndex);
67 #endif // #ifndef MT32EMU_PARTIALMANAGER_H
Definition: PartialManager.h:32