+// TEXTURES
+// ===========================================================================================================
+
vg_tex2d tex_tile_data = { .path = "textures/tileset.png" };
vg_tex2d tex_tile_detail = { .path = "textures/tile_overlays.png" };
vg_tex2d tex_wood = { .path = "textures/wood.png" };
vg_tex2d *texture_list[] = { &tex_tile_detail, &tex_tile_data, &tex_wood, &tex_ball };
-sfx_system_t audio_system_sfx =
+// AUDIO
+// ===========================================================================================================
+
+sfx_vol_control audio_volume_sfx = { .val = 1.0f, .name = "Sound effects" };
+sfx_vol_control audio_volume_music = { .val = 1.0f, .name = "Music" };
+
+sfx_system audio_system_sfx =
{
.vol = 1.f,
- .spd = 1.f,
.ch = 1,
- .cur = 0,
- .vol_src = &g_vol_sfx,
- .flags = 0x00,
- .fadeout = FADEOUT_LENGTH,
+ .vol_src = &audio_volume_sfx,
+ .fadeout_length = FADEOUT_LENGTH,
.name = "sfx"
};
-sfx_set_t audio_tile_mod =
+sfx_set audio_tile_mod =
{
.sources = "\
sound/mod_01.ogg\0\