settings menu & texsheet
[vg.git] / vg_audio.h
index 38290ff129f95c4ce00658303ef1f75bb9f7a45d..11fb8f46596465e6a0afae0e59728318fff60ea3 100644 (file)
@@ -1312,8 +1312,15 @@ static void audio_require_clip_loaded( audio_clip *clip )
  * Debugging
  */
 
-static void audio_debug_ui( m4x4f mtx_pv )
-{
+static void audio_debug_ui( 
+
+#ifdef VG_3D
+      m4x4f
+#else
+      m3x3f 
+#endif
+      mtx_pv ){
+
    if( !vg_audio.debug_ui )
       return;
 
@@ -1334,7 +1341,7 @@ static void audio_debug_ui( m4x4f mtx_pv )
                                               &vg_prof_audio_mix,
                                               &vg_prof_audio_dsp}, 3, 
                      budget, (ui_rect){ 4, VG_PROFILE_SAMPLE_COUNT*2 + 8,
-                                        512, 0 }, 3 );
+                                        512, 0 }, 3, 0 );
 
 
    char perf[128];
@@ -1412,6 +1419,7 @@ static void audio_debug_ui( m4x4f mtx_pv )
       ui_fill( row, 0xa0000000 | ch->colour );
       ui_text( row, perf, 1, k_ui_align_middle_left, 0 );
       
+#ifdef VG_3D
       if( AUDIO_FLAG_SPACIAL_3D ){
          v4f wpos;
          v3_copy( ch->editable_state.spacial_falloff, wpos );
@@ -1451,6 +1459,7 @@ static void audio_debug_ui( m4x4f mtx_pv )
             rect_copy( wr, overlap_buffer[ overlap_length ++ ] );
          }
       }
+#endif
        }
 
    audio_unlock();