mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 16:33:01 +00:00
initialize SF_INFO before loading sample
This commit is contained in:
parent
7d78b393fb
commit
ed6a110d44
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue