(theoretically) Port audio system

This commit is contained in:
2025-06-09 11:20:55 +02:00
parent 1b6007c323
commit 21a5e18e3b
5 changed files with 32 additions and 35 deletions

View File

@@ -59,8 +59,8 @@ AssetModule::AssetModule(entt::registry& registry)
.buffer_length = sizeof(PICKUP_SOUND_DATA)};
AudioAsset hit_sound{.buffer = HIT_SOUND_DATA, .buffer_length = sizeof(HIT_SOUND_DATA)};
registry.ctx().emplace<AudioAssets>(AudioAssets{.background_music = background_music,
.pickup_sound =.buffer = pickup_sound,
.hit_sound =.buffer = hit_sound});
.pickup_sound = pickup_sound,
.hit_sound = hit_sound});
// auto font = load_font(DEFAULT_FONT_DATA, sizeof(DEFAULT_FONT_DATA));
// registry.ctx().emplace<FontAssets>(FontAssets{.default_font = font});