From 36cd47d4cab228ea4cccd09b9192eb144d482e44 Mon Sep 17 00:00:00 2001 From: Joakim Lindbom Date: Mon, 15 Jan 2018 22:31:44 +0100 Subject: [PATCH] Now playing files in sorted order for Linux & OSX --- src/PLAYER.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/PLAYER.cpp b/src/PLAYER.cpp index 97e53c3..8a764ce 100644 --- a/src/PLAYER.cpp +++ b/src/PLAYER.cpp @@ -6,7 +6,7 @@ #include "cmath" //#include #include - +#include //#ifndef WIN32 @@ -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