From 8501fce38b2e8b9f4b3d4c9381ed48be6bef1524 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 21 Oct 2009 15:40:09 -0700 Subject: Remove unused source fields --- OpenAL32/Include/alSource.h | 2 -- OpenAL32/alSource.c | 12 ------------ 2 files changed, 14 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 8c6ba813..65928fc9 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -51,8 +51,6 @@ typedef struct ALsource ALuint ulBufferID; - ALboolean inuse; - ALboolean play; ALenum state; ALuint position; ALuint position_fraction; diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index af263279..6518a685 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1320,8 +1320,6 @@ ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, const ALuint *pSourceList) if(pSource->state != AL_PAUSED) { pSource->state = AL_PLAYING; - pSource->inuse = AL_TRUE; - pSource->play = AL_TRUE; pSource->position = 0; pSource->position_fraction = 0; pSource->BuffersPlayed = 0; @@ -1337,11 +1335,7 @@ ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, const ALuint *pSourceList) } } else - { pSource->state = AL_PLAYING; - pSource->inuse = AL_TRUE; - pSource->play = AL_TRUE; - } // Check if an Offset has been set if(pSource->lOffset) @@ -1357,7 +1351,6 @@ ALAPI ALvoid ALAPIENTRY alSourcePlayv(ALsizei n, const ALuint *pSourceList) if(!pContext->Device->Connected) { pSource->state = AL_STOPPED; - pSource->inuse = AL_FALSE; pSource->BuffersPlayed = pSource->BuffersInQueue; ALBufferList = pSource->queue; while(ALBufferList != NULL) @@ -1428,10 +1421,7 @@ ALAPI ALvoid ALAPIENTRY alSourcePausev(ALsizei n, const ALuint *sources) { Source = (ALsource*)ALTHUNK_LOOKUPENTRY(sources[i]); if(Source->state == AL_PLAYING) - { Source->state = AL_PAUSED; - Source->inuse = AL_FALSE; - } } } } @@ -1482,7 +1472,6 @@ ALAPI ALvoid ALAPIENTRY alSourceStopv(ALsizei n, const ALuint *sources) if(Source->state != AL_INITIAL) { Source->state = AL_STOPPED; - Source->inuse = AL_FALSE; Source->BuffersPlayed = Source->BuffersInQueue; ALBufferListItem = Source->queue; while(ALBufferListItem != NULL) @@ -1542,7 +1531,6 @@ ALAPI ALvoid ALAPIENTRY alSourceRewindv(ALsizei n, const ALuint *sources) if(Source->state != AL_INITIAL) { Source->state = AL_INITIAL; - Source->inuse = AL_FALSE; Source->position = 0; Source->position_fraction = 0; Source->BuffersPlayed = 0; -- cgit v1.2.3