From d67cba99bd97d42e7e52c6dfd7a08c288b1539c0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 8 Apr 2020 10:15:43 -0700 Subject: Clean up some more unnecessary uses of AL types --- alc/hrtf.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'alc/hrtf.cpp') diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 8078bbc3..6a9c187e 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -100,7 +100,7 @@ constexpr ALchar magicMarker03[8]{'M','i','n','P','H','R','0','3'}; /* First value for pass-through coefficients (remaining are 0), used for omni- * directional sounds. */ -constexpr ALfloat PassthruCoeff{0.707106781187f/*sqrt(0.5)*/}; +constexpr float PassthruCoeff{0.707106781187f/*sqrt(0.5)*/}; std::mutex LoadedHrtfLock; al::vector LoadedHrtfs; @@ -559,7 +559,7 @@ ALushort GetLE_ALushort(std::istream &data) return static_cast(ret); } -ALint GetLE_ALint24(std::istream &data) +int GetLE_ALint24(std::istream &data) { int ret = data.get(); ret |= data.get() << 8; @@ -569,11 +569,11 @@ ALint GetLE_ALint24(std::istream &data) ALuint GetLE_ALuint(std::istream &data) { - int ret = data.get(); - ret |= data.get() << 8; - ret |= data.get() << 16; - ret |= data.get() << 24; - return static_cast(ret); + ALuint ret{static_cast(data.get())}; + ret |= static_cast(data.get()) << 8; + ret |= static_cast(data.get()) << 16; + ret |= static_cast(data.get()) << 24; + return ret; } std::unique_ptr LoadHrtf00(std::istream &data, const char *filename) @@ -1381,7 +1381,7 @@ HrtfStorePtr GetLoadedHrtf(const std::string &name, const char *devname, const A } std::unique_ptr stream; - ALint residx{}; + int residx{}; char ch{}; if(sscanf(fname.c_str(), "!%d%c", &residx, &ch) == 2 && ch == '_') { -- cgit v1.2.3