no need to check errors after destroying context, clean up some OpenAL interface calls
This was SVN commit r13371.
This commit is contained in:
parent
8324e0f665
commit
c30f7a40e0
@ -317,8 +317,6 @@ CSoundManager::~CSoundManager()
|
||||
if ( m_Context )
|
||||
alcDestroyContext(m_Context);
|
||||
|
||||
AL_CHECK
|
||||
|
||||
if ( m_Device )
|
||||
alcCloseDevice(m_Device);
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ bool CBufferItem::IdleTask()
|
||||
{
|
||||
CScopeLock lock(m_ItemMutex);
|
||||
int proc_state;
|
||||
alGetSourceiv(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
alGetSourcei(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
AL_CHECK
|
||||
m_ShouldBePlaying = (proc_state != AL_STOPPED);
|
||||
return (proc_state != AL_STOPPED);
|
||||
|
@ -191,7 +191,7 @@ bool CSoundBase::IsPlaying()
|
||||
{
|
||||
CScopeLock lock(m_ItemMutex);
|
||||
int proc_state;
|
||||
alGetSourceiv(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
alGetSourcei(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
AL_CHECK
|
||||
|
||||
return (proc_state == AL_PLAYING);
|
||||
@ -334,7 +334,7 @@ void CSoundBase::FadeToIn(ALfloat newVolume, double fadeDuration)
|
||||
if (m_ALSource != 0)
|
||||
{
|
||||
ALenum proc_state;
|
||||
alGetSourceiv(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
alGetSourcei(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
if (proc_state == AL_PLAYING)
|
||||
{
|
||||
m_StartFadeTime = timer_Time();
|
||||
|
@ -70,7 +70,7 @@ bool CStreamItem::IdleTask()
|
||||
if (m_ALSource != 0)
|
||||
{
|
||||
int proc_state;
|
||||
alGetSourceiv(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
alGetSourcei(m_ALSource, AL_SOURCE_STATE, &proc_state);
|
||||
AL_CHECK
|
||||
|
||||
if (proc_state == AL_STOPPED)
|
||||
|
Loading…
Reference in New Issue
Block a user