/* =================== idSoundCache::idSoundCache() =================== */ idSoundCache::idSoundCache() { soundCacheAllocator.Init(); soundCacheAllocator.SetLockMemory( true ); listCache.AssureSize( 1024, NULL ); listCache.SetGranularity( 256 ); insideLevelLoad = false; }
/* ================ idStr::InitMemory ================ */ void idStr::InitMemory( void ) { #ifdef USE_STRING_DATA_ALLOCATOR stringDataAllocator.Init(); #endif }
/* ==================== idSampleDecoder::Init ==================== */ void idSampleDecoder::Init( void ) { decoderMemoryAllocator.Init(); decoderMemoryAllocator.SetLockMemory( true ); decoderMemoryAllocator.SetFixedBlocks( idSoundSystemLocal::s_realTimeDecoding.GetBool() ? 10 : 1 ); }