samples, use device even if samples don't exist, so state size doesn't change

This commit is contained in:
dinkc64 2024-02-24 09:18:52 -05:00
parent 077a1845c6
commit 66b3d4e3fd

View File

@ -540,8 +540,6 @@ void BurnSampleInit(INT32 bAdd /*add samples to stream?*/)
fclose(test);
}
#endif
if (!nEnableSamples) return;
soundbuf = (INT16*)BurnMalloc(0x1000 * 2 * 2); // mixing buffer
@ -585,8 +583,11 @@ void BurnSampleInit(INT32 bAdd /*add samples to stream?*/)
destination = NULL;
length = 0;
ZipLoadOneFile((char*)path, (const char*)szSampleName, &destination, &length);
if (nEnableSamples) {
ZipLoadOneFile((char*)path, (const char*)szSampleName, &destination, &length);
}
if (length) {
sample_ptr->flags = si.nFlags;
bprintf(0, _T("Loading \"%S\": "), szSampleName);