From adc6505424c04d9527f8b9aaf38510b3c532b975 Mon Sep 17 00:00:00 2001 From: xenakios Date: Thu, 16 Nov 2017 02:33:00 +0200 Subject: [PATCH] Still trying to understand the MacOs no sound issue, but no luck...Sigh. --- Source/PS_Source/Input/AInputS.h | 5 +++-- Source/PluginEditor.cpp | 4 +++- Source/PluginProcessor.cpp | 3 ++- paulstretchplugin.jucer | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) 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"/>