Skip to content

Commit

Permalink
- remove warnings on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hart committed Jan 23, 2025
1 parent c696a2b commit 19f2a7b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions hi_backend/backend/CompileExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,7 @@ CompileExporter::ErrorCodes CompileExporter::exportInternal(TargetTypes type, Bu
auto printExportedFiles = [this](MainController* mc, const Array<PoolReference>& files, ProjectHandler::SubDirectories d)
{
String name = ProjectHandler::getIdentifier(d);
NewLine nl;


logMessage("Exported " + name + " resources: ");

auto& handler = mc->getCurrentFileHandler();
Expand Down
2 changes: 1 addition & 1 deletion hi_core/hi_core/MainController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ void MainController::processBlockCommon(AudioSampleBuffer &buffer, MidiBuffer &m
for (int i = 0; i < osOutput.getNumChannels(); i++)
data[i] = osOutput.getChannelPointer(i);

AudioSampleBuffer thisMultiChannelBufferOs(data, osOutput.getNumChannels(), osOutput.getNumSamples());
AudioSampleBuffer thisMultiChannelBufferOs(data, (int)osOutput.getNumChannels(), (int)osOutput.getNumSamples());
synthChain->renderNextBlockWithModulators(thisMultiChannelBufferOs, masterEventBuffer);
oversampler->processSamplesDown(osInput);
}
Expand Down
2 changes: 0 additions & 2 deletions hi_core/hi_modules/effects/fx/SlotFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1007,8 +1007,6 @@ int HardcodedSwappableEffect::getNumDataObjects(ExternalData::DataType t) const
void HardcodedSwappableEffect::onDllReload(HardcodedSwappableEffect& fx, const std::pair<scriptnode::dll::ProjectDll*,
scriptnode::dll::ProjectDll*>& update)
{
auto dllManager = dynamic_cast<BackendProcessor*>(fx.asProcessor().getMainController())->dllManager.get();

auto thisId = fx.currentEffect;

auto prevNumParameters = fx.numParameters;
Expand Down
5 changes: 2 additions & 3 deletions hi_tools/hi_standalone_components/ZoomableViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ void ZoomableViewport::timerCallback()
void ZoomableViewport::scrollToRectangle(Rectangle<int> areaToShow, bool skipIfVisible, bool animate)
{
auto tBounds = getLocalBounds().toDouble();
auto aBounds = areaToShow.toDouble();


auto areaInViewport = getLocalArea(content, areaToShow).toDouble();

auto centerPositionInGraph = areaToShow.getCentre().toDouble();
Expand Down Expand Up @@ -1316,4 +1315,4 @@ void ZoomableViewport::Holder::paint(Graphics& g)
}


}
}

0 comments on commit 19f2a7b

Please sign in to comment.