MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / continueSoundData

Function continueSoundData

TheForceEngine/TFE_Asset/vocAsset.cpp:160–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 };
159
160 void continueSoundData(SoundBuffer* voc, const u8* soundData, u32 size)
161 {
162 if (!voc || !soundData || !size)
163 {
164 return;
165 }
166
167 u8* newData = (u8*)realloc(voc->data, voc->size + size);
168 if (newData)
169 {
170 voc->data = newData;
171 memcpy(voc->data + voc->size, soundData, size);
172 voc->size += size;
173 }
174 }
175
176 // Each sound block can have a different sampleRate but Dark Forces does not use this capability.
177 // Dark Forces requires the 8 bit codec to be used.

Callers 2

addSoundDataFunction · 0.85
parseVocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected