Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/PLAYER.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "cmath"
//#include <sys/dir.h>
#include <dirent.h>

#include <algorithm>

//#ifndef WIN32

Expand Down Expand Up @@ -139,6 +139,13 @@ void PLAYER::loadSample(std::string path) {
}

}

sort(fichier.begin(), fichier.end()); // Linux and OSX needs this to get files in right order
for (int o=0;o<int(fichier.size()-1); o++) {
if ((dir + "/" + fichier[o])==path) {
sampnumber = o;
}
}
closedir(rep);
reload = false;
}
Expand Down