diff --git a/Source/PS_Source/Input/AInputS.h b/Source/PS_Source/Input/AInputS.h index 6fc9197..7fcf278 100644 --- a/Source/PS_Source/Input/AInputS.h +++ b/Source/PS_Source/Input/AInputS.h @@ -207,7 +207,8 @@ public: m_cached_file_range = { 0,m_readbuf.getNumSamples() }; return; } - if (m_afreader==nullptr) + //jassert(m_afreader!=nullptr); + if (m_afreader==nullptr) return; m_loopcount = 0; m_silenceoutputted = 0; @@ -295,7 +296,7 @@ private: int m_xfadelen = 0; bool m_reverseplay = false; int64_t m_loopcount = 0; - bool m_using_memory_buffer = false; + bool m_using_memory_buffer = true; AudioFormatManager* m_manager = nullptr; std::mutex m_mutex; }; diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 4d9c38a..047bc2e 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -106,7 +106,9 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id) m_wavecomponent.setRecordingPosition(processor.getRecordingPositionPercent()); } else m_wavecomponent.setRecordingPosition(-1.0); - m_info_label.setText(String(processor.m_control->getStretchAudioSource()->m_param_change_count), dontSendNotification); + //m_info_label.setText(String(processor.m_control->getStretchAudioSource()->m_param_change_count), dontSendNotification); + double prebufavail=processor.m_control->getPreBufferingPercent(); + m_info_label.setText(String(prebufavail,1), dontSendNotification); } } diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index ceea94a..b2ddb83 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -280,7 +280,8 @@ void PaulstretchpluginAudioProcessor::getStateInformation (MemoryBlock& destData void PaulstretchpluginAudioProcessor::setStateInformation (const void* data, int sizeInBytes) { - ValueTree tree = ValueTree::readFromData(data, sizeInBytes); + return; + ValueTree tree = ValueTree::readFromData(data, sizeInBytes); if (tree.isValid()) { for (int i = 0; i + osxArchitecture="64BitIntel" osxCompatibility="10.9 SDK" osxSDK="default"/>