mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53: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;
|
||||
#else
|
||||
SF_INFO si;
|
||||
memset(&si,0,sizeof(SF_INFO));
|
||||
SNDFILE* f=sf_open(path,SFM_READ,&si);
|
||||
if (f==NULL) {
|
||||
BUSY_END;
|
||||
|
|
Loading…
Reference in a new issue