mirror of
https://gitlab.com/samplehive/sample-hive.git
synced 2026-10-23 21:25:00 +02:00
Add build type define and minor meson build file update.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "Utility/Signal.hpp"
|
||||
#include "Utility/Tags.hpp"
|
||||
|
||||
#include <cstddef>
|
||||
#include <exception>
|
||||
#include <vector>
|
||||
|
||||
@@ -220,7 +221,7 @@ void cWaveformViewer::UpdateWaveformBitmap()
|
||||
}
|
||||
|
||||
// Actually normalize
|
||||
for (int i = 0; i < waveform.size(); i++)
|
||||
for (size_t i = 0; i < waveform.size(); i++)
|
||||
waveform[i] /= normalize;
|
||||
|
||||
// Draw code
|
||||
@@ -235,7 +236,7 @@ void cWaveformViewer::UpdateWaveformBitmap()
|
||||
|
||||
SH_LOG_DEBUG("Drawing bitmap..");
|
||||
|
||||
for (int i = 0; i < waveform.size() - 1; i++)
|
||||
for (size_t i = 0; i < waveform.size() - 1; i++)
|
||||
{
|
||||
float half_display_height = static_cast<float>(display_height) / 2.0f;
|
||||
|
||||
|
||||
+7
-1
@@ -22,7 +22,13 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
|
||||
#include <SampleHiveConfig.hpp>
|
||||
|
||||
#ifndef SH_BUILD_DEBUG
|
||||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
|
||||
#else
|
||||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_OFF
|
||||
#endif
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user