//-----------------------------------------------------------------------------
CIwSoundManager::CIwSoundManager()
{
    IW_CALLSTACK("CIwSoundManager::CIwSoundManager")
    IW_SINGLETON_SET(SoundManager);

    m_GroupIdentity     = new CIwSoundGroup;
    m_ParamsIdentity    = new CIwSoundParams;
    m_SoundInsts        = NULL;
    m_SoundInstPtrs     = NULL;
    m_NumActiveInsts    = 0;
    m_Flags             = ACTIVE_F;

    m_MasterVol     = IW_GEOM_ONE;
    m_MasterPan     = 0;
    m_MasterPitch   = IW_GEOM_ONE;

    // Allocate our own channels so that they can be used to override Segundo
    // channels where necessary
    int cfgChannels = 8;
    s3eConfigGetInt("SOUND", "MaxChannels", &cfgChannels);
    int32 s3eChannels = s3eSoundGetInt(S3E_SOUND_NUM_CHANNELS);

    m_MaxInsts = MIN(cfgChannels, s3eChannels);

    s_ChannelsPCM8 = new CIwChannelPCM8[m_MaxInsts];
    s_ChannelsPCM16 = new CIwChannelPCM16[m_MaxInsts];
    s_ChannelsADPCM = new CIwChannelADPCM[m_MaxInsts];

    m_SoundInsts        = new CIwSoundInst[m_MaxInsts];
    m_SoundInstPtrs     = new CIwSoundInst*[m_MaxInsts];
    for (uint32 i = 0; i < m_MaxInsts; i++)
        m_SoundInstPtrs[i] = &m_SoundInsts[i];
}
예제 #2
0
파일: IwGame.cpp 프로젝트: Lordarnon/kartz
//--------------------------------------------------------------------------------
// CIwGameClock
//--------------------------------------------------------------------------------
CIwGameClock::CIwGameClock()
{
    IW_CALLSTACK("CIwGameClock::CIwGameClock");
    IW_SINGLETON_SET(GameClock);

    m_MillisecondsPerLogicTick  = 0; // this *must* be set explicitly with InitFramerate()
    m_MillisecondsPassed        = 0;
    m_Milliseconds              = 0;
    m_UpdateFrames              = 0;
    m_RenderFrames              = 0;
    m_RenderFramesLast          = 0;
    m_Paused                    = false;
    m_FrameUnlimited            = false;
}
예제 #3
0
//-----------------------------------------------------------------------------
// CIwRenderManager
//-----------------------------------------------------------------------------
CIwRenderManager::CIwRenderManager()
{
    IW_CALLSTACK("CIwRenderManager::CIwRenderManager")
    IW_SINGLETON_SET(RenderManager);

    // Ptrs
    m_Camera    = NULL;
    m_World     = NULL;

    // Interpolation
    m_TimeFraction  = 0;

#ifdef IW_DEBUG
    m_DebugFlags    = 0;
    m_DebugTextNext = m_DebugText;
#endif
}
예제 #4
0
CIwHTTPQueue::CIwHTTPQueue()
: m_MaxFileSize(-1)
{
	IW_SINGLETON_SET(HTTPQueue);
	m_timeout = 30000;
}