Logo Search packages:      
Sourcecode: blender version File versions  Download package

void AUD_SoftwareDevice::destroy (  )  [protected]

Uninitializes member variables.

Definition at line 65 of file AUD_SoftwareDevice.cpp.

References m_mixer, m_mutex, m_pausedSounds, m_playback, m_playingSounds, and playing().

Referenced by AUD_JackDevice::~AUD_JackDevice(), AUD_ReadDevice::~AUD_ReadDevice(), and AUD_SDLDevice::~AUD_SDLDevice().

{
      if(m_playback)
            playing(m_playback = false);

      delete m_mixer; AUD_DELETE("mixer")

      // delete all playing sounds
      while(m_playingSounds->begin() != m_playingSounds->end())
      {
            delete (*(m_playingSounds->begin()))->reader; AUD_DELETE("reader")
            delete *(m_playingSounds->begin()); AUD_DELETE("handle")
            m_playingSounds->erase(m_playingSounds->begin());
      }
      delete m_playingSounds; AUD_DELETE("list")

      // delete all paused sounds
      while(m_pausedSounds->begin() != m_pausedSounds->end())
      {
            delete (*(m_pausedSounds->begin()))->reader; AUD_DELETE("reader")
            delete *(m_pausedSounds->begin()); AUD_DELETE("handle")
            m_pausedSounds->erase(m_pausedSounds->begin());
      }
      delete m_pausedSounds; AUD_DELETE("list")

      pthread_mutex_destroy(&m_mutex);
}


Generated by  Doxygen 1.6.0   Back to index