WAVEBANKENTRY
WAVEBANKENTRY
Contains the entry information from an XACT wave bank.
typedef struct WAVEBANKENTRY {
union {
struct {
DWORD dwFlags : 4;
DWORD Duration : 28;
};
DWORD dwFlagsAndDuration;
};
WAVEBANKMINIWAVEFORMAT Format;
WAVEBANKREGION PlayRegion;
WAVEBANKSAMPLEREGION LoopRegion;
} WAVEBANKENTRY, *LPWAVEBANKENTRY; Members
- dwFlags
- Flags for the wave bank entry. Can be the following values.
| Value | Description |
| WAVEBANKENTRY_FLAGS_READAHEAD | Indicates stream read-ahead is enabled. |
| WAVEBANKENTRY_FLAGS_LOOPCACHE | Indicates one or more looping sounds use this wave. |
| WAVEBANKENTRY_FLAGS_REMOVELOOPTAIL | Indicates removal of data after the end of the loop region. |
- Duration
- Duration of the wave, in units of one sample. For instance, a ten second long wave sampled at 48KHz would have a duration of 480,000. This value is not affected by the number of channels, the number of bits per sample, or the compression format of the wave.
- dwFlagsAndDuration
- DWORD value representing both the flags and duration.
- Format
- WAVEBANKMINIWAVEFORMAT structure describing the mini-wave format for the wave bank entry.
- PlayRegion
- WAVEBANKREGION structure that describes the region within the wave data segment that contains this entry.
- LoopRegion
- WAVEBANKSAMPLEREGION structure that describes the region within the wave data (in samples) that should loop.
Requirements
Header: Declared in Xact2wb.h.
See Also
XACT Structures