diff --git a/src/gui.cxx b/src/gui.cxx index 852bb81..18205ac 100644 --- a/src/gui.cxx +++ b/src/gui.cxx @@ -262,17 +262,17 @@ void Gui::selectLoadSample( int track, int scene ) Fl_Native_File_Chooser fnfc; fnfc.title("Pick a file"); fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE); - fnfc.filter("Wav\t*.wav"); + + fnfc.filter("Audio\t{*.aiff,*.wav,*.flac}"); std::string defLoadPath = gui->getDiskReader()->getLastLoadedSamplePath(); fnfc.directory( defLoadPath.c_str() ); // default directory to use // Show native chooser switch ( fnfc.show() ) { - case -1: printf("ERROR: %s\n", fnfc.errmsg()); break; // ERROR - case 1: printf("CANCEL\n"); break; // CANCEL - default: printf("Loading directory: %s\n", fnfc.filename()); - // update path and load it + case -1: /*printf("ERROR: %s\n", fnfc.errmsg()); */ break; // ERROR + case 1: /*(printf("CANCEL\n"); */ break; // CANCEL + default: /*printf("Loading directory: %s\n", fnfc.filename()); */ path = fnfc.filename(); break; } diff --git a/test.sh b/test.sh deleted file mode 100755 index 641d40c..0000000 --- a/test.sh +++ /dev/null @@ -1,71 +0,0 @@ - -# Tup with CONFIG_LUPPP_BUILD_TESTS=y - -# Compile with: -# define BUILD_TESTS -# define BUILD_COVERAGE_TEST -# -lgcov - -# run the tests: -# Luppp quits after tests are finished -# gcov scrapes .gcna / .gcdo files, produces .gcov files -# cp source files into dir: needed for analysis by lcov -# lcov scrapes .gcov files into lcov.info -# genhtml produces index.html from lcov.info - -#set -e - -make && ./bin/luppp -test -stopAfterTest -if [ $? -eq 0 ]; then - notify-send -t 5 "Luppp: Tests passed..." -else - notify-send -t 10 -u critical "Luppp: Build / Test Failed!" -fi - - - -exit -##################################### - -FILE=buildTest/build.success - -rm -f $(FILE) - -tup upd buildTest/ ; - - -if [ ! -f $FILE ]; then - echo "File not found!" -fi - -if [ -f $FILE ]; -then - echo "File $FILE exists." -else - notify-send -t 0 --urgency=critical "Luppp: Compilation FAILURE!" - exit -fi - -sleep 1 - -cd buildTest/ - -./luppp - -if [ $? -eq 0 ]; then - notify-send -t 5 "Luppp: Tests passed successfully..." - echo OK -else - notify-send -t 5 -u critical "Luppp: Test FAILURE!" - echo FAIL -fi - -cd src - -gcov -r -b * -cp -r ../../src/* ./ -lcov --directory . --capture --output-file lcov.info -genhtml lcov.info - -notify-send -t 5 "Luppp: Test data available..." -#firefox src/index.html