diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-07 21:01:44 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-07 21:01:44 +0100 |
commit | 6b0fa20b8b40b7211b18129ebad108f314a0d5e0 (patch) | |
tree | fd182df7fd7ffb931823256c256e0bf492f44824 /src/audio/sampman_oal.cpp | |
parent | Fix pickup text (diff) | |
download | re3-6b0fa20b8b40b7211b18129ebad108f314a0d5e0.tar re3-6b0fa20b8b40b7211b18129ebad108f314a0d5e0.tar.gz re3-6b0fa20b8b40b7211b18129ebad108f314a0d5e0.tar.bz2 re3-6b0fa20b8b40b7211b18129ebad108f314a0d5e0.tar.lz re3-6b0fa20b8b40b7211b18129ebad108f314a0d5e0.tar.xz re3-6b0fa20b8b40b7211b18129ebad108f314a0d5e0.tar.zst re3-6b0fa20b8b40b7211b18129ebad108f314a0d5e0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/sampman_oal.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp index 0d82d552..ce6458e6 100644 --- a/src/audio/sampman_oal.cpp +++ b/src/audio/sampman_oal.cpp @@ -30,7 +30,7 @@ #include "MusicManager.h" #include "Frontend.h" #include "Timer.h" -#ifdef AUDIO_OPUS +#ifdef AUDIO_OAL_USE_OPUS #include <opusfile.h> #endif @@ -83,7 +83,7 @@ char SampleBankDescFilename[] = "audio/sfx.SDT"; char SampleBankDataFilename[] = "audio/sfx.RAW"; FILE *fpSampleDescHandle; -#ifdef AUDIO_OPUS +#ifdef OPUS_SFX OggOpusFile *fpSampleDataHandle; #else FILE *fpSampleDataHandle; @@ -1245,7 +1245,7 @@ cSampleManager::LoadSampleBank(uint8 nBank) return false; } -#ifdef AUDIO_OPUS +#ifdef OPUS_SFX int samplesRead = 0; int samplesSize = nSampleBankSize[nBank] / 2; op_pcm_seek(fpSampleDataHandle, 0); @@ -1350,7 +1350,7 @@ cSampleManager::LoadPedComment(uint32 nComment) } } -#ifdef AUDIO_OPUS +#ifdef OPUS_SFX int samplesRead = 0; int samplesSize = m_aSamples[nComment].nSize / 2; op_pcm_seek(fpSampleDataHandle, m_aSamples[nComment].nOffset / 2); @@ -2007,7 +2007,7 @@ cSampleManager::InitialiseSampleBanks(void) fpSampleDescHandle = fcaseopen(SampleBankDescFilename, "rb"); if ( fpSampleDescHandle == NULL ) return false; -#ifndef AUDIO_OPUS +#ifndef OPUS_SFX fpSampleDataHandle = fcaseopen(SampleBankDataFilename, "rb"); if ( fpSampleDataHandle == NULL ) { @@ -2025,7 +2025,7 @@ cSampleManager::InitialiseSampleBanks(void) fpSampleDataHandle = op_open_file(SampleBankDataFilename, &e); #endif fread(m_aSamples, sizeof(tSample), TOTAL_AUDIO_SAMPLES, fpSampleDescHandle); -#ifdef AUDIO_OPUS +#ifdef OPUS_SFX int32 _nSampleDataEndOffset = m_aSamples[TOTAL_AUDIO_SAMPLES - 1].nOffset + m_aSamples[TOTAL_AUDIO_SAMPLES - 1].nSize; #endif fclose(fpSampleDescHandle); |