mirror of
https://github.com/libretro/FBNeo.git
synced 2024-11-23 17:09:43 +00:00
samples, use device even if samples don't exist, so state size doesn't change
This commit is contained in:
parent
077a1845c6
commit
66b3d4e3fd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user