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

void AUD_SoftwareDevice::create (  )  [protected]

Initializes member variables.

Definition at line 49 of file AUD_SoftwareDevice.cpp.

References m_mutex, m_pausedSounds, m_playback, m_playingSounds, and m_volume.

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

{
      m_playingSounds = new std::list<AUD_SoftwareHandle*>(); AUD_NEW("list")
      m_pausedSounds = new std::list<AUD_SoftwareHandle*>(); AUD_NEW("list")
      m_playback = false;
      m_volume = 1.0;

      pthread_mutexattr_t attr;
      pthread_mutexattr_init(&attr);
      pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);

      pthread_mutex_init(&m_mutex, &attr);

      pthread_mutexattr_destroy(&attr);
}


Generated by  Doxygen 1.6.0   Back to index