MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / drwav_open_write__internal

Function drwav_open_write__internal

extlibs/soloud/src/audiosource/wav/dr_wav.h:2137–2150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2135
2136
2137drwav* drwav_open_write__internal(const drwav_data_format* pFormat, drwav_uint64 totalSampleCount, drwav_bool32 isSequential, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData)
2138{
2139 drwav* pWav = (drwav*)DRWAV_MALLOC(sizeof(*pWav));
2140 if (pWav == NULL) {
2141 return NULL;
2142 }
2143
2144 if (!drwav_init_write__internal(pWav, pFormat, totalSampleCount, isSequential, onWrite, onSeek, pUserData)) {
2145 DRWAV_FREE(pWav);
2146 return NULL;
2147 }
2148
2149 return pWav;
2150}
2151
2152drwav* drwav_open_write(const drwav_data_format* pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void* pUserData)
2153{

Callers 4

drwav_open_writeFunction · 0.85

Calls 1

Tested by

no test coverage detected