summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 31e1c58..bcf6015 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1,5 +1,6 @@
#include "audio/audio.h"
#include "audio/synth.h"
+#include "assets.h" // Include generated asset header
#include "gpu/gpu.h"
#include "platform.h"
#include "util/math.h"
@@ -54,6 +55,12 @@ int main(int argc, char **argv) {
const Spectrogram spec = {g_spec_buffer_a, g_spec_buffer_b, SPEC_FRAMES};
int tone_id = synth_register_spectrogram(&spec);
+ // Dummy call to ensure asset system is linked
+ size_t dummy_size;
+ const uint8_t* dummy_asset = GetAsset(AssetId::ASSET_NULL_ASSET, &dummy_size);
+ (void)dummy_asset;
+ (void)dummy_size;
+
double last_beat_time = 0.0;
int beat_count = 0;