| 147 | } |
| 148 | |
| 149 | void 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 | |
| 159 | void CSoundRender_Cache::cat_destroy(cache_cat& cat) |
| 160 | { |