diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/audio/private/snd_wave_mixer_xma.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'engine/audio/private/snd_wave_mixer_xma.h')
| -rw-r--r-- | engine/audio/private/snd_wave_mixer_xma.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/engine/audio/private/snd_wave_mixer_xma.h b/engine/audio/private/snd_wave_mixer_xma.h new file mode 100644 index 0000000..7ec7663 --- /dev/null +++ b/engine/audio/private/snd_wave_mixer_xma.h @@ -0,0 +1,24 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=====================================================================================// + +#ifndef SND_WAVE_MIXER_XMA_H +#define SND_WAVE_MIXER_XMA_H +#pragma once + +class CAudioMixer; +class IWaveData; + +// xma must be decoded as atomic blocks +#define XMA_BLOCK_SIZE ( 2 * 1024 ) + +// cannot be made slower than 15ms +// cannot be made faster than 5ms +// xma hardware needs be have stable clocking +#define XMA_POLL_RATE 15 + +CAudioMixer *CreateXMAMixer( IWaveData *data, int initialStreamPosition ); + +#endif // SND_WAVE_MIXER_XMA_H |