aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 5f3ba7f0..139eb75b 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -553,8 +553,6 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue)
// Add the buffer to the queue (as long as it is NOT the NULL buffer)
if(lValue != 0)
{
- ALuint channels;
-
// Source is now in STATIC mode
Source->lSourceType = AL_STATIC;
@@ -566,13 +564,8 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue)
Source->queue = BufferListItem;
Source->BuffersInQueue = 1;
- channels = aluChannelsFromFormat(buffer->format);
- Source->LoopStart = FramesFromBytes(buffer->LoopStart,
- buffer->eOriginalFormat,
- channels);
- Source->LoopEnd = FramesFromBytes(buffer->LoopEnd,
- buffer->eOriginalFormat,
- channels);
+ Source->LoopStart = buffer->LoopStart;
+ Source->LoopEnd = buffer->LoopEnd;
// Increment reference counter for buffer
buffer->refcount++;