mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-05 04:15:05 +00:00
what is going on
This commit is contained in:
parent
6492eeff56
commit
11d9ce3f87
1 changed files with 6 additions and 1 deletions
|
@ -2148,7 +2148,12 @@ int DivEngine::addSampleFromFile(const char* path) {
|
|||
SNDFILE* f=sf_open(path,SFM_READ,&si);
|
||||
if (f==NULL) {
|
||||
isBusy.unlock();
|
||||
lastError=fmt::sprintf("could not open file! (%s)",sf_error_number(sf_error(NULL)));
|
||||
int err=sf_error(NULL);
|
||||
if (err==SF_ERR_SYSTEM) {
|
||||
lastError=fmt::sprintf("could not open file! (%s %s)",sf_error_number(err),strerror(errno));
|
||||
} else {
|
||||
lastError=fmt::sprintf("could not open file! (%s)",sf_error_number(err));
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
if (si.frames>16777215) {
|
||||
|
|
Loading…
Reference in a new issue