Skip to content

Commit

Permalink
compatibility with raspbian buster
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-bondi committed May 26, 2021
1 parent e520a85 commit 09d01ec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
10 changes: 6 additions & 4 deletions Source/MeterDecay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ void MeterDecay::get(std::vector<float> &values) const {

MemoryBlock MeterDecay::get() const {
GenericScopedLock<SpinLock> l(minMaxCircularBufferLock);
MemoryBlock mb(2+minMaxCircularBuffer.size()*sizeof(float));
mb[0] = 1;
mb[1] = minMaxCircularBuffer.size();
float* data = (float*)((char*)mb.getData()+2);
std::vector<float> data(minMaxCircularBuffer.size());

for (auto channelIdx = 0; channelIdx < minMaxCircularBuffer.size(); ++channelIdx) {
float maxVal = 0;
Expand All @@ -62,6 +59,11 @@ MemoryBlock MeterDecay::get() const {
}
data[channelIdx] = maxVal;
}

MemoryBlock mb(2+minMaxCircularBuffer.size()*sizeof(float));
mb[0] = 1;
mb[1] = minMaxCircularBuffer.size();
mb.copyFrom(data.data(), 2, data.size()*sizeof(float));
return mb;
}

Expand Down
4 changes: 4 additions & 0 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@ AudioProcessorEditor *EbeamerAudioProcessor::createEditor() {
}

bool EbeamerAudioProcessor::hasEditor() const {
#ifdef HEADLESS
return false;
#else
return true;
#endif
}

void EbeamerAudioProcessor::showConnectionErrorMessage (const String& messageText){
Expand Down
7 changes: 4 additions & 3 deletions eBeamer.jucer
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
pluginCode="ebea" version="2.1.0" bundleIdentifier="com.eventideaudio.ebeamer"
companyWebsite="https://www.eventideaudio.com/" aaxIdentifier="it.polimi.deib.ispl.ebeamer"
pluginAUExportPrefix="EbeamerAU" pluginCharacteristicsValue="pluginWantsMidiIn"
headerPath="..\..\ASIO\common" companyCopyright="2021 ISPL and Eventide"
headerPath="..\..\ASIO\common&#10;../../../modules/" companyCopyright="2021 ISPL and Eventide"
displaySplashScreen="1" jucerFormatVersion="1" cppLanguageStandard="latest">
<MAINGROUP id="X7PQw9" name="Ebeamer">
<GROUP id="{B4EEABF4-DAA3-979C-9DFA-76ED49E72338}" name="Resources">
Expand Down Expand Up @@ -607,9 +607,10 @@
</MODULEPATHS>
</VS2019>
<LINUX_MAKE targetFolder="Builds/LinuxMakefile" externalLibraries="atomic"
smallIcon="A6ImnF" bigIcon="A6ImnF">
smallIcon="A6ImnF" bigIcon="A6ImnF" extraCompilerFlags="-Wcast-align"
extraDefs="HEADLESS" userNotes="RaspberryPi 4">
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug"/>
<CONFIGURATION isDebug="1" name="Debug" optimisation="4"/>
<CONFIGURATION isDebug="0" name="Release"/>
</CONFIGURATIONS>
<MODULEPATHS>
Expand Down

0 comments on commit 09d01ec

Please sign in to comment.