more comprehensive audio visualizer
[fishladder.git] / fishladder.c
index ac1efcfc19045eec2175c81e72359e0385b43d3e..e024fca71987265a050db88d2a0be6b4f99317de 100644 (file)
@@ -597,6 +597,7 @@ void vg_update(void)
                else
                        world.selected = -1;
        }
+       else world.selected = -1;
        
        // Simulation stop/start
        if( vg_get_button_down("go") )
@@ -611,6 +612,8 @@ void vg_update(void)
                                world.io[i].recv_count = 0;
                        
                        vg_info( "Stopping simulation!\n" );
+                       
+                       sfx_system_fadeout( &audio_system_balls_rolling, 44100 );
                }
                else
                {
@@ -638,7 +641,8 @@ void vg_update(void)
        {
                while( world.sim_frame < (int)((vg_time-world.sim_start)*2.0f) )
                {
-                       vg_info( "frame: %u\n", world.sim_frame );
+                       //vg_info( "frame: %u\n", world.sim_frame );
+                       sfx_set_playrnd( &audio_random, &audio_system_balls_switching, 0, 9 );
                        
                        for( int i = 0; i < arrlen( world.io ); i ++ )
                        {
@@ -1098,4 +1102,5 @@ void vg_render(void)
 void vg_ui(void)
 {
        //ui_test();
+       sfx_internal_debug_overlay();
 }