summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-22 11:16:10 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:43 +0200
commit319bf9d8d218d79d31f8fc0dfac2908b6c869c54 (patch)
tree263a1573d64fe4bb5359510e84a28d39cbbb4ac9
parentUse bool8 in audio code (diff)
downloadre3-319bf9d8d218d79d31f8fc0dfac2908b6c869c54.tar
re3-319bf9d8d218d79d31f8fc0dfac2908b6c869c54.tar.gz
re3-319bf9d8d218d79d31f8fc0dfac2908b6c869c54.tar.bz2
re3-319bf9d8d218d79d31f8fc0dfac2908b6c869c54.tar.lz
re3-319bf9d8d218d79d31f8fc0dfac2908b6c869c54.tar.xz
re3-319bf9d8d218d79d31f8fc0dfac2908b6c869c54.tar.zst
re3-319bf9d8d218d79d31f8fc0dfac2908b6c869c54.zip
-rw-r--r--src/audio/AudioManager.cpp4
-rw-r--r--src/audio/AudioManager.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index c15d04bd..8d9d867d 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -409,13 +409,13 @@ cAudioManager::CheckForAnAudioFileOnCD() const
return SampleManager.CheckForAnAudioFileOnCD();
}
-uint8
+char
cAudioManager::GetCDAudioDriveLetter() const
{
if (m_bIsInitialised)
return SampleManager.GetCDAudioDriveLetter();
- return 0;
+ return '\0';
}
bool8
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index edf5eb63..4a888788 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -338,7 +338,7 @@ public:
void GenerateIntegerRandomNumberTable();
char *Get3DProviderName(uint8 id) const;
- uint8 GetCDAudioDriveLetter() const;
+ char GetCDAudioDriveLetter() const;
int8 GetCurrent3DProviderIndex() const;
float GetCollisionLoopingRatio(uint32 a, uint32 b, float c) const; // not used
float GetCollisionOneShotRatio(int32 a, float b) const;