diff options
author | Chris Robinson <[email protected]> | 2010-05-21 15:52:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-21 15:52:35 -0700 |
commit | 58e5404d61757bcc254fe9008defa5a7a71d5138 (patch) | |
tree | 9e8736c1f515860e22f1093dfe97313af9a635ba /OpenAL32/alSource.c | |
parent | 3676fdc4db55e04e70851d2818f8ca5f5b44e761 (diff) |
Loop points should be specified in sample offsets
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 11 |
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++; |