implement repeating sound effects
[fishladder.git] / fishladder.c
index dec99e2c266da40d93d327e18c01164bcdf7421c..ac1efcfc19045eec2175c81e72359e0385b43d3e 100644 (file)
@@ -616,6 +616,8 @@ void vg_update(void)
                {
                        vg_success( "Starting simulation!\n" );
                        
+                       sfx_set_playrnd( &audio_rolls, &audio_system_balls_rolling, 0, 1 );
+                       
                        world.simulating = 1;
                        world.num_fishes = 0;
                        world.sim_frame = 0;
@@ -755,7 +757,10 @@ void vg_update(void)
                                        fish->alive = 0;
                                else
                                        if( cell_entry->config == k_cell_type_split )
+                                       {
+                                               sfx_set_playrnd( &audio_splitter, &audio_system_balls_important, 0, 1 );
                                                cell_entry->state |= FLAG_FLIP_ROTATING;
+                                       }
                        }
                        
                        world.sim_frame ++;