| 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. |
no outgoing calls
no test coverage detected