fixed REALLY bad threading bugs with audio
[fishladder.git] / fishladder_resources.h
index cd73f52899a380f01c0137c8194b7c72045dcde6..1f8c5454da860017005ac429a71fd2353df94cb3 100644 (file)
@@ -47,6 +47,19 @@ sound/rolling_01.ogg\0\
 sound/rolling_02.ogg\0"
 };
 
+sfx_set audio_random =
+{
+ .sources = "\
+sound/random_01.ogg\0\
+sound/random_02.ogg\0\
+sound/random_03.ogg\0\
+sound/random_04.ogg\0\
+sound/random_05.ogg\0\
+sound/random_06.ogg\0\
+sound/random_07.ogg\0\
+sound/random_08.ogg\0"
+};
+
 // One two or three layers of rolling noise
 sfx_system audio_system_balls_rolling =
 {
@@ -84,14 +97,17 @@ static void resource_load_main(void)
        sfx_set_init( &audio_tile_mod, NULL );
        sfx_set_init( &audio_splitter, NULL );
        sfx_set_init( &audio_rolls, NULL );
+       sfx_set_init( &audio_random, NULL );
 }
 
 static void resource_free_main(void)
 {
-       vg_tex2d_free( texture_list, vg_list_size( texture_list ) );    
+       vg_tex2d_free( texture_list, vg_list_size( texture_list ) );
+       
        sfx_set_free( &audio_tile_mod );
        sfx_set_free( &audio_splitter );
        sfx_set_free( &audio_rolls );
+       sfx_set_free( &audio_random );
 }
 
 // SHADERS