initialize SF_INFO before loading sample

This commit is contained in:
tildearrow 2022-06-16 21:25:21 -05:00
parent 7d78b393fb
commit ed6a110d44

View file

@ -2183,6 +2183,7 @@ int DivEngine::addSampleFromFile(const char* path) {
return -1; return -1;
#else #else
SF_INFO si; SF_INFO si;
memset(&si,0,sizeof(SF_INFO));
SNDFILE* f=sf_open(path,SFM_READ,&si); SNDFILE* f=sf_open(path,SFM_READ,&si);
if (f==NULL) { if (f==NULL) {
BUSY_END; BUSY_END;