diff --git a/CMakeLists.txt b/CMakeLists.txt index 18a7b2e..4efce48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,7 +261,7 @@ set(test_case_sources # Finally invoke jamba_add_vst_plugin jamba_add_vst_plugin( - RELEASE_FILENAME "SAM-SPL 64" + RELEASE_FILENAME "SAM-SPL64" ARCHIVE_ARCHITECTURE "${JAMBA_ARCHIVE_ARCHITECTURE}" TARGETS_PREFIX "jmb_" VST_SOURCES "${vst_sources}" "${vst2_sources}" diff --git a/archive/README-macOS_64bits.txt b/archive/README-macOS_64bits.txt index 6dae059..3ed17dd 100644 --- a/archive/README-macOS_64bits.txt +++ b/archive/README-macOS_64bits.txt @@ -11,17 +11,12 @@ copy it under $HOME/Library/Audio/Plug-ins (or /Library/Audio/Plug-ins) Or if you prefer to install each file individually: -For VST2, copy VST/SAM SPL64.vst under - - $HOME/Library/Audio/Plug-ins/VST for a single user - - or /Library/Audio/Plug-ins/VST for all users (may require admin access) - - or any DAW specific path (64bits) - -For VST3, copy VST3/SAM SPL64.vst3 under +For VST3, copy VST3/SAM-SPL64.vst3 under - $HOME/Library/Audio/Plug-ins/VST3 for a single user - or /Library/Audio/Plug-ins/VST3 for all users (may require admin access) - or any DAW specific path (64bits) -For Audio Unit, copy Components/SAM SPL64.component under $HOME/Library/Audio/Plug-ins/Components +For Audio Unit, copy Components/SAM-SPL64.component under $HOME/Library/Audio/Plug-ins/Components - $HOME/Library/Audio/Plug-ins/Components for a single user - or /Library/Audio/Plug-ins/Components for all users (may require admin access) - Note: you may have to reboot your computer for the Audio Unit to appear in Logic diff --git a/archive/README-win_64bits.txt b/archive/README-win_64bits.txt index 75f6c75..82c8857 100644 --- a/archive/README-win_64bits.txt +++ b/archive/README-win_64bits.txt @@ -8,11 +8,7 @@ copy it under C:\Program Files Or if you prefer to install each file individually: -For VST2, copy VstPlugins\SAM SPL64.dll under - - C:\Program Files\VstPlugins - - or any DAW specific path (64bits) - -For VST3, copy Common Files\VST3\SAM SPL64.vst3 under +For VST3, copy Common Files\VST3\SAM-SPL64.vst3 under - C:\Program Files\Common Files\VST3 (may require admin access) - or any DAW specific path (64bits) diff --git a/src/cpp/GUI/SampleSaverView.cpp b/src/cpp/GUI/SampleSaverView.cpp index 26b6d23..df3216d 100644 --- a/src/cpp/GUI/SampleSaverView.cpp +++ b/src/cpp/GUI/SampleSaverView.cpp @@ -48,18 +48,27 @@ class SampleSaverView : public Views::StateAwareViewsetDefaultExtension(extension); selector->setTitle("Save Sample To"); - selector->setDefaultSaveName(UTF8String(Steinberg::String().printf("sample.%s", - fExportSampleMajorFormat == SampleFile::ESampleMajorFormat::kSampleFormatWAV ? "wav" : "aif"))); + selector->setDefaultSaveName(UTF8String(Steinberg::String().printf("sample.%s", extension.getExtension().data()))); if(selector->runModal()) { if(selector->getNumSelectedFiles() > 0) { - auto filename = selector->getSelectedFile(0); + auto filename = std::string(selector->getSelectedFile(0)); + auto expectedExtension = std::string(".") + extension.getExtension().getString(); + if(filename.size() < expectedExtension.size() || + filename.substr(filename.size() - expectedExtension.size()) != expectedExtension) + { + filename += expectedExtension; + } if(!fState->fSampleMgr->save(filename, *fExportSampleMajorFormat, *fExportSampleMinorFormat)) - DLOG_F(WARNING, "Could not save %s", filename); + DLOG_F(WARNING, "Could not save %s", filename.data()); else - DLOG_F(INFO, "Successfully saved %s", filename); + DLOG_F(INFO, "Successfully saved %s", filename.data()); } } } diff --git a/src/cpp/SampleBuffers.h b/src/cpp/SampleBuffers.h index 0ffe0f2..3e151cd 100644 --- a/src/cpp/SampleBuffers.h +++ b/src/cpp/SampleBuffers.h @@ -9,7 +9,7 @@ #include class SndfileHandle; -class ma_decoder; +struct ma_decoder; namespace pongasoft::VST::SampleSplitter {