aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
Diffstat (limited to 'al')
-rw-r--r--al/buffer.cpp16
-rw-r--r--al/buffer.h3
2 files changed, 8 insertions, 11 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index 524fb81c..10849a0a 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -554,8 +554,8 @@ void LoadData(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq, ALuint size,
ALBuf->mBuffer.mUserData = nullptr;
ALBuf->mBuffer.mSampleLen = frames;
- ALBuf->LoopStart = 0;
- ALBuf->LoopEnd = ALBuf->mBuffer.mSampleLen;
+ ALBuf->mBuffer.mLoopStart = 0;
+ ALBuf->mBuffer.mLoopEnd = ALBuf->mBuffer.mSampleLen;
}
/** Prepares the buffer to use the specified callback, using the specified format. */
@@ -620,8 +620,8 @@ void PrepareCallback(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq,
ALBuf->mBuffer.mAmbiOrder = ambiorder;
ALBuf->mBuffer.mSampleLen = 0;
- ALBuf->LoopStart = 0;
- ALBuf->LoopEnd = ALBuf->mBuffer.mSampleLen;
+ ALBuf->mBuffer.mLoopStart = 0;
+ ALBuf->mBuffer.mLoopEnd = ALBuf->mBuffer.mSampleLen;
}
@@ -1262,8 +1262,8 @@ START_API_FUNC
values[0], values[1], buffer);
else
{
- albuf->LoopStart = static_cast<ALuint>(values[0]);
- albuf->LoopEnd = static_cast<ALuint>(values[1]);
+ albuf->mBuffer.mLoopStart = static_cast<ALuint>(values[0]);
+ albuf->mBuffer.mLoopEnd = static_cast<ALuint>(values[1]);
}
break;
@@ -1457,8 +1457,8 @@ START_API_FUNC
else switch(param)
{
case AL_LOOP_POINTS_SOFT:
- values[0] = static_cast<ALint>(albuf->LoopStart);
- values[1] = static_cast<ALint>(albuf->LoopEnd);
+ values[0] = static_cast<ALint>(albuf->mBuffer.mLoopStart);
+ values[1] = static_cast<ALint>(albuf->mBuffer.mLoopEnd);
break;
default:
diff --git a/al/buffer.h b/al/buffer.h
index bdc87e07..6b5c48ab 100644
--- a/al/buffer.h
+++ b/al/buffer.h
@@ -47,9 +47,6 @@ struct ALbuffer {
ALuint OriginalSize{0};
ALuint OriginalAlign{0};
- ALuint LoopStart{0u};
- ALuint LoopEnd{0u};
-
ALuint UnpackAlign{0};
ALuint PackAlign{0};
ALuint UnpackAmbiOrder{1};