MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / cat_create

Method cat_create

ogsr_engine/xrSound/SoundRender_Cache.cpp:149–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void CSoundRender_Cache::cat_create(cache_cat& cat, u32 bytes)
150{
151 cat.size = bytes / _line;
152 if (bytes % _line)
153 cat.size += 1;
154 u32 allocsize = (cat.size & 1) ? cat.size + 1 : cat.size;
155 cat.table = xr_alloc<u16>(allocsize);
156 memset(cat.table, 0xff, allocsize * sizeof u16); // fill32
157}
158
159void CSoundRender_Cache::cat_destroy(cache_cat& cat)
160{

Callers 1

loadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected