diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-08-15 16:52:12 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-08-15 16:54:49 +0200 |
commit | 8f18f848363ba71ee74f13f88ac5a6c5da78b3ba (patch) | |
tree | 35bac433fe9a98acdaae40c62cb8753ce422aa54 /src/audio/sampman.h | |
parent | AnimViewer! (diff) | |
parent | Merge pull request #190 from Fire-Head/master (diff) | |
download | re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.gz re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.bz2 re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.lz re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.xz re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.zst re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/sampman.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/audio/sampman.h b/src/audio/sampman.h index ba2381b5..def4853f 100644 --- a/src/audio/sampman.h +++ b/src/audio/sampman.h @@ -2,6 +2,8 @@ #include "common.h" #include "AudioSamples.h" +#define MAX_VOLUME 127 + struct tSample { int32 nOffset; uint32 nSize; @@ -10,30 +12,31 @@ struct tSample { int32 nLoopEnd; }; -#define MAXPROVIDERS 64 - -#define MAXCHANNELS 28 -#define MAXCHANNELS_SURROUND 24 -#define MAX2DCHANNELS 1 -#define CHANNEL2D MAXCHANNELS +enum +{ + SAMPLEBANK_MAIN, + SAMPLEBANK_PED, + MAX_SAMPLEBANKS, +}; +#define MAX_PEDSFX 7 +#define PED_BLOCKSIZE 79000 -#define MAX_MP3STREAMS 2 +#define MAXPROVIDERS 64 +#define MAXCHANNELS 28 +#define MAXCHANNELS_SURROUND 24 +#define MAX2DCHANNELS 1 +#define CHANNEL2D MAXCHANNELS -#define MAX_SAMPLEBANKS 2 -#define MAX_PEDSFX 7 -#define PED_BLOCKSIZE 79000 +#define MAX_MP3STREAMS 2 +#define DIGITALRATE 32000 +#define DIGITALBITS 16 +#define DIGITALCHANNELS 2 #define MAX_DIGITAL_MIXER_CHANNELS 32 -#define DIGITALRATE 32000 -#define DIGITALBITS 16 -#define DIGITALCHANNELS 2 - - - class cSampleManager { uint8 m_nEffectsVolume; @@ -98,7 +101,7 @@ public: int32 _GetPedCommentSlot(uint32 nComment); - int32 GetSampleBaseFrequency (uint32 nSample); + int32 GetSampleBaseFrequency (uint32 nSample); int32 GetSampleLoopStartOffset(uint32 nSample); int32 GetSampleLoopEndOffset (uint32 nSample); uint32 GetSampleLength (uint32 nSample); |