switching output audio devices
[vg.git] / vg_profiler.h
index dfc47ef1266d680b5fe1db657f4ad9b583870493..d0106af5d7eef89c6ffd3503d8715853aa1faf47 100644 (file)
@@ -78,7 +78,11 @@ static void vg_profile_drawn( struct vg_profile **profiles, u32 count,
    int ptrs[8];
 
    for( int i=0; i<count; i++ ){
+#if 0
       ptrs[i] = profiles[i]->buffer_current;
+#else
+      ptrs[i] = 0;
+#endif
       avgs[i] = 0.0f;
    }
 
@@ -91,10 +95,14 @@ static void vg_profile_drawn( struct vg_profile **profiles, u32 count,
       f64 total = 0.0;
 
       for( int j=0; j<count; j++ ){
+#if 0
          ptrs[j] --;
 
          if( ptrs[j] < 0 )
             ptrs[j] = VG_PROFILE_SAMPLE_COUNT-1;
+#else
+         ptrs[j] ++;
+#endif
 
          f64 sample  = (f64)profiles[j]->samples[ptrs[j]] * rate_mul,
                 px   = (total  / (budget)) * sw,