Still trying to understand the MacOs no sound issue, but no luck...Sigh.

This commit is contained in:
xenakios 2017-11-16 02:33:00 +02:00
parent 3fd0b4ea09
commit adc6505424
4 changed files with 9 additions and 5 deletions

View File

@ -207,7 +207,8 @@ public:
m_cached_file_range = { 0,m_readbuf.getNumSamples() }; m_cached_file_range = { 0,m_readbuf.getNumSamples() };
return; return;
} }
if (m_afreader==nullptr) //jassert(m_afreader!=nullptr);
if (m_afreader==nullptr)
return; return;
m_loopcount = 0; m_loopcount = 0;
m_silenceoutputted = 0; m_silenceoutputted = 0;
@ -295,7 +296,7 @@ private:
int m_xfadelen = 0; int m_xfadelen = 0;
bool m_reverseplay = false; bool m_reverseplay = false;
int64_t m_loopcount = 0; int64_t m_loopcount = 0;
bool m_using_memory_buffer = false; bool m_using_memory_buffer = true;
AudioFormatManager* m_manager = nullptr; AudioFormatManager* m_manager = nullptr;
std::mutex m_mutex; std::mutex m_mutex;
}; };

View File

@ -106,7 +106,9 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id)
m_wavecomponent.setRecordingPosition(processor.getRecordingPositionPercent()); m_wavecomponent.setRecordingPosition(processor.getRecordingPositionPercent());
} else } else
m_wavecomponent.setRecordingPosition(-1.0); 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);
} }
} }

View File

@ -280,7 +280,8 @@ void PaulstretchpluginAudioProcessor::getStateInformation (MemoryBlock& destData
void PaulstretchpluginAudioProcessor::setStateInformation (const void* data, int sizeInBytes) void PaulstretchpluginAudioProcessor::setStateInformation (const void* data, int sizeInBytes)
{ {
ValueTree tree = ValueTree::readFromData(data, sizeInBytes); return;
ValueTree tree = ValueTree::readFromData(data, sizeInBytes);
if (tree.isValid()) if (tree.isValid())
{ {
for (int i = 0; i<getNumParameters(); ++i) for (int i = 0; i<getNumParameters(); ++i)

View File

@ -57,7 +57,7 @@
<CONFIGURATION name="Debug" enablePluginBinaryCopyStep="1" isDebug="1" optimisation="1" <CONFIGURATION name="Debug" enablePluginBinaryCopyStep="1" isDebug="1" optimisation="1"
linkTimeOptimisation="0" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;" linkTimeOptimisation="0" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;"
libraryPath="/usr/local/Cellar/fftw/3.3.6-pl2/lib" cppLibType="libc++" libraryPath="/usr/local/Cellar/fftw/3.3.6-pl2/lib" cppLibType="libc++"
osxArchitecture="64BitIntel" osxCompatibility="10.12 SDK"/> osxArchitecture="64BitIntel" osxCompatibility="10.9 SDK" osxSDK="default"/>
<CONFIGURATION name="Release" enablePluginBinaryCopyStep="1" isDebug="0" optimisation="3" <CONFIGURATION name="Release" enablePluginBinaryCopyStep="1" isDebug="0" optimisation="3"
linkTimeOptimisation="1" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;" linkTimeOptimisation="1" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;"
osxCompatibility="10.9 SDK" osxArchitecture="64BitIntel" cppLibType="libc++" osxCompatibility="10.9 SDK" osxArchitecture="64BitIntel" cppLibType="libc++"