aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/converter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-17 20:26:00 -0700
committerChris Robinson <[email protected]>2019-06-17 20:26:00 -0700
commit2b19c53ecec0deff0536865f71f44bef3ff14094 (patch)
tree0de056262ebd7427286ecaeb67d5021e26f4e676 /Alc/converter.cpp
parent55785c0a16938fe5148693a59451f698bef4133c (diff)
Use al::byte instead of ALbyte for raw bytes
Diffstat (limited to 'Alc/converter.cpp')
-rw-r--r--Alc/converter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/converter.cpp b/Alc/converter.cpp
index aa74d510..0f8e8941 100644
--- a/Alc/converter.cpp
+++ b/Alc/converter.cpp
@@ -213,7 +213,7 @@ ALsizei SampleConverter::convert(const ALvoid **src, ALsizei *srcframes, ALvoid
const ALsizei SrcFrameSize{static_cast<ALsizei>(mChan.size()) * mSrcTypeSize};
const ALsizei DstFrameSize{static_cast<ALsizei>(mChan.size()) * mDstTypeSize};
const ALsizei increment{mIncrement};
- auto SamplesIn = static_cast<const ALbyte*>(*src);
+ auto SamplesIn = static_cast<const al::byte*>(*src);
ALsizei NumSrcSamples{*srcframes};
FPUCtl mixer_mode{};
@@ -268,8 +268,8 @@ ALsizei SampleConverter::convert(const ALvoid **src, ALsizei *srcframes, ALvoid
for(size_t chan{0u};chan < mChan.size();chan++)
{
- const ALbyte *SrcSamples = SamplesIn + mSrcTypeSize*chan;
- ALbyte *DstSamples = static_cast<ALbyte*>(dst) + mDstTypeSize*chan;
+ const al::byte *SrcSamples{SamplesIn + mSrcTypeSize*chan};
+ al::byte *DstSamples = static_cast<al::byte*>(dst) + mDstTypeSize*chan;
/* Load the previous samples into the source data first, then the
* new samples from the input buffer.
@@ -311,7 +311,7 @@ ALsizei SampleConverter::convert(const ALvoid **src, ALsizei *srcframes, ALvoid
SamplesIn += SrcFrameSize*(DataPosFrac>>FRACTIONBITS);
NumSrcSamples -= mini(NumSrcSamples, (DataPosFrac>>FRACTIONBITS));
- dst = static_cast<ALbyte*>(dst) + DstFrameSize*DstSize;
+ dst = static_cast<al::byte*>(dst) + DstFrameSize*DstSize;
pos += DstSize;
}