From 59a71b1454303df58c4c7e39b17d8538bb867663 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 10 Oct 2008 01:31:31 -0700 Subject: [PATCH] Remove another unused source member --- Alc/ALu.c | 1 - OpenAL32/Include/alSource.h | 2 -- OpenAL32/alSource.c | 4 ---- 3 files changed, 7 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 72a9763d..e3bd069a 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -922,7 +922,6 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma ALSource->inuse = AL_TRUE; ALSource->play = AL_TRUE; ALSource->BuffersPlayed = 0; - ALSource->lBytesPlayed = 0; BufferListItem = ALSource->queue; while(BufferListItem != NULL) { diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index ffdd9f10..2bd1db08 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -87,8 +87,6 @@ typedef struct ALsource // Index to itself ALuint source; - ALint lBytesPlayed; - ALint lOffset; ALint lOffsetType; diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 799c18a9..dd88ed08 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1411,7 +1411,6 @@ ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, const ALuint *pSourceList) pSource->position = 0; pSource->position_fraction = 0; pSource->BuffersPlayed = 0; - pSource->lBytesPlayed = 0; pSource->ulBufferID = pSource->queue->buffer; @@ -2146,9 +2145,6 @@ static void ApplyOffset(ALsource *pSource, ALboolean bUpdateContext) // Set Current Buffer ID pSource->ulBufferID = pBufferList->buffer; - // Set Total Bytes Played to Offset - pSource->lBytesPlayed = lByteOffset; - // SW Mixer Positions are in Samples pSource->position = (lByteOffset - lTotalBufferSize) / aluBytesFromFormat(pBuffer->format) / -- 2.11.4.GIT