Temporary fixes for demos, see #1148
This commit is contained in:
parent
56b0f4d957
commit
91928fb804
3 changed files with 32 additions and 12 deletions
|
|
@ -26,11 +26,22 @@ if(TARGET Qt5::Widgets)
|
|||
set_target_properties(sfizz_demo_stretch_tuning PROPERTIES AUTOUIC ON)
|
||||
endif()
|
||||
|
||||
if(SFIZZ_USE_SNDFILE)
|
||||
add_executable(eq_apply EQ.cpp)
|
||||
target_link_libraries(eq_apply PRIVATE sfizz::internal sfizz::sndfile sfizz::cxxopts sfizz::filesystem)
|
||||
|
||||
target_link_libraries(eq_apply PRIVATE
|
||||
sfizz::cxxopts
|
||||
sfizz::filesystem
|
||||
sfizz::internal
|
||||
sfizz::sndfile
|
||||
)
|
||||
add_executable(filter_apply Filter.cpp)
|
||||
target_link_libraries(filter_apply PRIVATE sfizz::internal sfizz::sndfile sfizz::cxxopts sfizz::filesystem)
|
||||
target_link_libraries(filter_apply PRIVATE
|
||||
sfizz::cxxopts
|
||||
sfizz::filesystem
|
||||
sfizz::internal
|
||||
sfizz::sndfile
|
||||
)
|
||||
endif()
|
||||
|
||||
add_executable(sfizz_plot_curve PlotCurve.cpp)
|
||||
target_link_libraries(sfizz_plot_curve PRIVATE sfizz::internal)
|
||||
|
|
@ -38,11 +49,19 @@ target_link_libraries(sfizz_plot_curve PRIVATE sfizz::internal)
|
|||
add_executable(sfizz_plot_wavetables PlotWavetables.cpp)
|
||||
target_link_libraries(sfizz_plot_wavetables PRIVATE sfizz::internal)
|
||||
|
||||
if(SFIZZ_USE_SNDFILE)
|
||||
add_executable(sfizz_plot_lfo PlotLFO.cpp)
|
||||
target_link_libraries(sfizz_plot_lfo PRIVATE sfizz::internal sfizz::sndfile sfizz::cxxopts)
|
||||
|
||||
target_link_libraries(sfizz_plot_lfo PRIVATE
|
||||
sfizz::cxxopts
|
||||
sfizz::internal
|
||||
sfizz::sndfile
|
||||
)
|
||||
add_executable(sfizz_file_instrument FileInstrument.cpp)
|
||||
target_link_libraries(sfizz_file_instrument PRIVATE sfizz::internal sfizz::sndfile)
|
||||
target_link_libraries(sfizz_file_instrument PRIVATE
|
||||
sfizz::internal
|
||||
sfizz::sndfile
|
||||
)
|
||||
endif()
|
||||
|
||||
add_executable(sfizz_file_wavetable FileWavetable.cpp)
|
||||
target_link_libraries(sfizz_file_wavetable PRIVATE sfizz::internal)
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
sfz::WavetableInfo wt {};
|
||||
|
||||
sfz::FileMetadataReader reader;
|
||||
if (!reader.open(path)) {
|
||||
sfz::FileMetadataReader reader(path);
|
||||
if (!reader.open()) {
|
||||
fprintf(stderr, "Cannot open file\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ int main(int argc, char* argv[])
|
|||
|
||||
sfzPath = argv[1];
|
||||
}
|
||||
// FIXME: OptionException was replaced by some cxxopts::exceptions::???
|
||||
catch (cxxopts::OptionException& ex) {
|
||||
std::cerr << ex.what() << "\n";
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue